-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple carousels, addNav #47
Comments
I am having this same issue. It's a real problem for me right now on a current project. Is there a workaround or another version I can download (download, not "pull")? |
I am also having the same issue, it doesn't seem to like having more than one version of the init .carousel running at the same time. |
Anyone have a work around for this multiple carousel issue yet?? |
Use the namespace variable. If you specify a unique namespace for each slider you won't get any collisions. Otherwise it just uses the default of 'carousel' for all of them. |
I was having the same problem, your suggestion worked. However, there's a small issue with it, or well, with the carousel script itself: If you have 2 or more carousels you'd need to use a different namespace per carousel in order for their pagination to work without skipping slides, ie: namespace: 'carousel-1' and namespace: 'carousel-2'. The
So in order for you to style all carousels' paginations the same, you'd need to stack all selectors in the same declaration, which totally violates the concept of Cascading in stylesheets. For example, for three different carousels that use pagination, instead of using one single rule to style all three paginations you need to stack the selectors:
|
Not sure about "totally violates" but anyway, could you do: [parent container] ol{ padding:5px 10px; background:#ddd; } ? |
Good point. Sure you can, but then you'd be creating additional HTML markup for the sake of styling, which in turn "violates" the concept of content separated from code separated from style :p Minor workarounds no doubt, but workarounds nevertheless. We're lucky they turned out to be minor, I guess we should be grateful for that :) |
Encountered the same issue. Using the namespace variable indeed works. However, the more troublesome aspect is that the plugin uses the namespace as it's identifying class on the tablist navigation ordered list, replacing the generic '.carousel-tabs' that you'd use to style against. Now you'd have to add css for every carousel's navigation, as rzea suggests. I think this can be fixed pretty easily in the plugin itself. Add a couple static classes to the tablist navigation that don't change, and they can be reliably styled against. I did that and it works. |
I'm running into problems with multiple sliders on a page, all using the addNav parameter. All sliders except the last one on the page jump forward (the number of slides skipped depends on the number of sliders on the page). Anyone know why this is happening?
I've edited the demo version to re-create the problem i'm getting...
Example 1: Using 3 sliders on a page
http://matthewbranthwaite.co.uk/projects/responsive/example1.html
Issues:
Example 2: Using 4 sliders on a page
http://matthewbranthwaite.co.uk/projects/responsive/example2.html
Issues:
Any help appreciated,
Cheers,
Matt
The text was updated successfully, but these errors were encountered: