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.

Question: How can I have two carousels on one page?

See original GitHub issue

I have two Vue-Carousel components,

  1. A ‘Portfolio’ images component with arrows left & right.
  2. And a ‘Quotes’ component that shows quotes I like.

I can get the Portfolio images component working correctly no problem, but the Quotes component is massively wide. It appears to be some weird css flexbox issue. The flex-basis is way too wide: “flex-basis: 2932px”. <div class="VueCarousel-inner" style="transform: translateX(0px); transition: transform 0.5s ease; flex-basis: 2932px; visibility: visible;">

On my Portfolio component, which is good, I have: <slide><img src="x.png"></slide>

And then:

img {
      width: 100% !important;
      height: auto !important;
      background-size: cover !important;
    }

So I am at a loss… I’m a bit of a noob but it seems like the JS is not calculating the math correctly?? No idea really. Please help.

*Using latest versions of everything.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
quinnlangillecommented, Feb 1, 2018

@midlantica thanks for opening a new issue - let me know if the above fix helps!

0reactions
GuyHarperDaycommented, Nov 1, 2019

Same for me (in chrome)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it possible to have multiple Twitter Bootstrap carousels on ...
Problem : For two bootstrap carousels to work on a page, basically, I need to set two different IDs for their div containers...
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 bootstrap carousels on one page, can only control one
HTML : Multiple bootstrap carousels on one page, can only control one [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] ...
Read more >
Bootstrap Carousel - Two on the Same Page – A Clean Example
I was having a hard time with the project I was working on having two Bootstrap Carousels on the same page. In the...
Read more >
Using multiple carousel on a single page causing slides ...
for eg: at my first carousel I have 10 slides and on other carousel I've 12 slides and length is vary for each...
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