1
I have a Carousel in bootstrap, I wanted to do it with 3 images, as an example http://bootsnipp.com/snippets/featured/media-slider-carousel-bs3
But wanted to make it dynamic, follows below my code:
<div class='row'>
<div class='col-md-8'>
<div class="carousel slide media-carousel" id="media">
<div class="carousel-inner">
<?php $i = 1;?>
<?php foreach ($anuncios as $anuncio) :?>
<?php $item_class = ($i == 1) ? 'item active' : 'item'; ?>
<div class="<?=$item_class;?>">
<div class="row">
<div class="col-md-4">
<img src="imagens/usuarios/<?=$anuncio['nome_thumb']?>" alt="<?=$anuncio['nome_thumb'];?>">
</div>
</div>
</div>
<?php
$i++;
endforeach;
?>
</div>
<a data-slide="prev" href="#media" class="left carousel-control">‹</a>
<a data-slide="next" href="#media" class="right carousel-control">›</a>
</div>
</div>
</div>
</div>
Only this way, it’s not 3-in-3, it’s only 1-in-1, as I could change to 3-in-3?
Thank you.
i recommend using http://owlgraphic.com/owlcarousel it is easy to use and has its solution, take a look at the examples
– Furlan
Thank you very much, it seems to me that will solve my problem even. I will test and put here, Thank you very much
– Eduardo Paludo
will yes, eh very quiet his documentation. :)
– Furlan