3
I’m sorry if I already have that topic, and I looked and I found nothing. I have the code below where I need Carousel to only switch to the next one when the gif is finished. Following image1 after image2 and when it goes back to the gif it starts normal. What always happens is that the GIF it follows the normal exchange time, so it never finishes running the gif and already switches to the next one. gif can have a time that changes, so I can’t just adjust the time that each slide will be. Is there any other way to do this? ps: I use Carousel with bootstrap.
<div id="carouselExampleSlidesOnly" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100" src="image.gif" alt="">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="image1.jpg" alt="">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="image2.png" alt="">
</div>
</div>
</div>
Starting points (server side): http://www.imagemagick.org/discourse-server/viewtopic.php?t=23276 - https://justinsomnia.org/2006/10/gif-animation-duration-calculation/
– Bacco
If you give up and just want to control the slider speed I think I have an answer for you.
– hugocsl
you say, "gif can have a time that changes," you get that time per parameter?
– Danielle Arruda torres
Danielle meant that it can be different gifs with different duration time, I do not receive the time itself as parameter.
– JoãoLessa
@hugocsl I can’t just control the slider speed because gif might not be the same forever, so I’d have to watch the gif time itself, or something like that.
– JoãoLessa
People I didn’t put there, but maybe it’s relevant, this is an HTML that is part of a web system in JAVA. A bunch of banners that I receive images and gifs and it keeps running, only when it is a GIF happens the described.
– JoãoLessa