question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting up multiple carousels on same page

See original GitHub issue

Possible / 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:closed
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
davidjerlekecommented, Oct 16, 2019

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

1reaction
davidjerlekecommented, Oct 15, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found