Question about the problem with several sliders on one page - cannot understand?! #6884
Unanswered
Voodoopupp
asked this question in
Q&A
Replies: 1 comment 2 replies
-
because of this : Lines 71 to 83 in 2f61fda |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I can't quite understand the problem with multiple sliders on the same page that are supposed to use the same settings.
Examples e.g.:
#273
#3797
#50
https://raddy.dev/blog/multiple-instances-of-swiperjs-on-the-same-page-with-the-same-settings/
It is written again and again that there are different solutions for this: either one simply initiates Swiper with a unique CSS class each time and then defines this multiple times in javascript or one builds a loop and then dynamically initiates different classes.
I have created a simple test here, where every swiper has the same class and it still works without problems - both the pagination and the navigation arrows:
https://codepen.io/voodoopupp/pen/PoxyaXa
I just don't understand why this works for me, but the question about "multiple initiation" keeps coming up again and again?
Can someone here enlighten me in a simple way? What am I missing?
Greetings
Voodoopupp
Beta Was this translation helpful? Give feedback.
All reactions