Replies: 3 comments 3 replies
-
Hi @Jonofat |
Beta Was this translation helpful? Give feedback.
-
So this is really easily done. What you need to do is create your buttons and give them a previous and next class, so in my case it was something like className="prevButton" and className="nextButton". Then what you do is you pass these classes through the navigation prop like this: navigation={{
prevEl: '.prevButton',
nextEl: '.nextButton',
}} Then just style as normal. It's worth noting I am using V6 so this may not work if you're using V7 but I have my buttons outside of my Swiper component and they work fine. Hopefully that helps! |
Beta Was this translation helpful? Give feedback.
-
Apologies for the delay on this one. I ended up doing the below.
Hope this helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have read some comments that for standard swiper slider using html you can place the navigation divs outside of the container etc. but I don't think this is possible in React because you don't actually use markup to place the arrows, you just add 'navigation' prop to your component. By default the arrows sit in the centre but I actually want them underneath the swiper. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions