Carousel data-interval is always 5000 on first item
See original GitHub issueHi all, I implemented a carousel using bootstrap carousel component. Everything were working fine until I tried to delay the first item with more than 5 seconds. It looks like bootstrap is ignoring data-interval="10000" attribute to the element. I checked it in the documentation and it’s not working on the demo there as well. First item is delayed only 5 seconds, instead of 10seconds. Every other item is respecting the data-interval attribute. Can you suggest some workaround or am I missing something?
Link to the documentation: https://getbootstrap.com/docs/4.3/components/carousel/#individual-carousel-item-interval MacOS - Chrome
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
bootstrap 5 slider interval not working properly - Stack Overflow
The code for BS5's Carousel has it that if element has a data-bs-interval then that value is used, otherwise it uses the default....
Read more >Re: Timing in Carousels - Adobe Support Community
Unexpressed, the data-interval on the carousel container is 5000 milliseconds for all slides. When expressed, the container assumes the new ...
Read more >Bootstrap JS Carousel Reference - W3Schools
Specifies the delay (in milliseconds) between each slide. Note: Set interval to false to stop the items from automatically sliding, Using JS Using...
Read more >Carousel · Bootstrap v5.1
Add data-bs-interval="" to a .carousel-item to change the amount of time to delay between automatically cycling to the next item. First slide.
Read more >Paradise Slider Documentation - Ben Glaros
We would like to thank you for purchasing Paradise Slider! ... class="carousel slide" data-ride="carousel" data-pause="hover" data-interval="5000"> <!
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Ah sorry, yes, confirming this is the case in the latest docs: https://getbootstrap.com/docs/4.5/components/carousel/#individual-carousel-item-interval. Also affects v5’s docs.
/cc @Johann-S
interval not working properly it always delays for 1 to 2 seconds.