DEV Community

Discussion on: Customizing Swiper.js prev/next arrow buttons and pagination bullets in React

Collapse
 
forestdean profile image
John Walton

This has been really helpful. I was hoping to recreate an old jQuery carousel I set up with Malsup Cycle2. It was possible to set up custom controls outside of the slideshow container. Is this possible with Slider or have I reached a dead-end?

I tried using the swiper-button class on external button elements but there was no success.

Collapse
 
ivadyhabimana profile image
Ivad Yves HABIMANA

Hi @forestdean I think that's possible. You can actually control the slider programmatically by using the swiper.slideNext() and slider.slidePrev() and many other methods.
Here is the link to the the methods in the Swiper API swiperjs.com/swiper-api#method-swi...