4
I have a loop that brings 12 images or more. The presentation of these images should follow the following layout:
So as soon as the "next" if pressed a new block will appear with 6 more items following the order: 7, 8, 9, 10 , 11, 12.
The big problem I face is only in the presentation of these two lines that I can not by some logic problem in my loop.
<div class="col-md-8">
<ul>
<div id="owl-programacao" >
foreach ($listas $key => $itens) { ?>
<li><img src="$itens['src']"></li>
<?php } ?>
</div>
</ul>
</div>
$("#owl-programacao").owlCarousel({
items:6,
navigation: true
});
The result of the above script is just the presentation single-line with 6 items, a common carousel.
Help awe, guys, please!
– Lollipop
I don’t know this
owl-carousel
. But have you ever thought of creating adiv
that would contain the 6 slider blocks in the formation you want, and apply the.owlCarousel
in this div?– Leonardo Rodrigues
There are semantic problems in your code.
div
insideul
?– Diego Souza
I’ll post you a suggestion.
– Diego Souza
uses a pagination api with transition effect, I will check if I find one that I used and found good :) this solves, because you can position the elements you want and the quantities you want inside containers, and this will already solve
– Murilo Melo
or an easier solution, put them all inside a container, (6, 6, 6 ...) and in the Owl-Carousel, take the parent element (the container) and use slide on it
– Murilo Melo