How do I set autoplay options when using the Element web component in React? #6436
-
I'm following the instructions here: https://swiperjs.com/element#usage-with-react Here is my code:
Previously, before I was doing this the React Way, I was doing this:
I've tried a variety of ways of passing the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
From what i understand, |
Beta Was this translation helpful? Give feedback.
-
You can pass Swiper object params in the [key]-[subkey] format. https://swiperjs.com/element#parameters-as-attributes So to match your previous autoplay settings you could update your
|
Beta Was this translation helpful? Give feedback.
@mattbarnicle
You can pass Swiper object params in the [key]-[subkey] format.
https://swiperjs.com/element#parameters-as-attributes
So to match your previous autoplay settings you could update your
swiper-container
element like so: