Setting up multiple carousels on same page
See original GitHub issuePossible / how to do something like this?
import EmblaCarousel from 'embla-carousel';
var elements = document.querySelectorAll("li.carouselparent");
for (var i= 0; i < elements.length; i++) {
const emblaNode = document.querySelector('.embla');
const options = { loop: true };
const embla = EmblaCarousel(emblaNode, options);
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Is it possible to have multiple Twitter Bootstrap carousels on ...
I have three carousels running at the same time, each with their own unique ID. They're being called using an attribute selector like...
Read more >Can I use two bootstrap carousels on a single page? - Quora
Sure you can use many carousels in one page. The only thing you should change is the ID and href.
Read more >Multiple Carousels on Same Page - MDBootstrap
I have two different types of carousel on my home page, one for the head and another further down which is the multi...
Read more >Setting up multiple carousels on same page · Issue #28 - GitHub
Possible / how to do something like this? import EmblaCarousel from 'embla-carousel'; var elements = document.
Read more >Bootstrap Carousel - Two on the Same Page – A Clean Example
will just create issues if you put two bootstrap carousels on the same page. The class '.carousel' is used in the bootstrap plugin....
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 FreeTop 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
Top GitHub Comments
Thanks Stewart (@MetaBureau). I’m glad I could help 🙂.
If you like this project after trying it for some time and want to support it, please consider recommending it to a friend and/or giving it a star. Don’t feel obligated to, but it really helps.
Cheers! David
Hello Stewart (@MetaBureau),
Here’s a CodeSandbox demonstration of how to initialise multiple carousels on a page with dot, previous and next navigation.
I hope this helps!
Best, David