0
How could I make a Carousel with an element, each element will have a different display duration? Ex.: One (element) of 5 seconds; other 8 seconds.
I managed to do with the Slick of jQuery, however I cannot stipulate the time each element is displayed. How can I do this?
HTML
<div class='container_banner'>
<div class='single-item'>
<div><h3>1</h3></div>
<div><h3>2</h3></div>
<div><h3>3</h3></div>
<div><h3>4</h3></div>
<div><h3>5</h3></div>
<div><h3>6</h3></div>
</div>
<div class='single-item2'>
<div><h3>1</h3></div>
<div><h3>2</h3></div>
<div><h3>3</h3></div>
<div><h3>4</h3></div>
<div><h3>5</h3></div>
<div><h3>6</h3></div>
</div>
</div>
Javascript
$(".single-item").slick({
dots: true,
infinite: true,
speed: 500,
slidesToShow: 1,
slidesToScroll: 1,
autoplay: true,
});
$(".single-item2").slick({
dots: true,
infinite: true,
speed: 500,
slidesToShow: 1,
slidesToScroll: 1,
autoplay: true,
});
CSS
.container_banner {
margin: 0 auto;
padding: 40px;
width: 80%;
color: #333;
background: #419be0;
}
.slick-slide {
text-align: center;
color: #419be0;
background: white;
}
That https://jsfiddle.net/5t3ts4gy/1/ ?
– Valdeir Psr
Wagner you want item 1 to stay a while X item 2 a time Y, item 3 a time Z etc... Or you want Two Slider one with the slowest intens and the other with the fastest items for example? As Valdeir did?
– hugocsl
I want item 1 to stay a while X item 2 a time Y, item 3 a time Z etc...
– Wagner Martins Bodyboard