Question: How can I have two carousels on one page?
See original GitHub issueI have two Vue-Carousel components,
- A ‘Portfolio’ images component with arrows left & right.
- 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:
- Created 6 years ago
- Comments:11 (2 by maintainers)
Top 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 >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
@midlantica thanks for opening a new issue - let me know if the above fix helps!
Same for me (in chrome)