Sunday, October 23, 2022
HomeWordPress DevelopmentJavascript code for customized icons to maneuver slides on elementor picture slider

Javascript code for customized icons to maneuver slides on elementor picture slider


Proper now I’ve an Elementor picture carousel slider, which I’ve custom-made to my liking. I’ve added customized icons, with customized placement, that ought to transfer the slides forwards and backwards on icon click on. I do know Elementor makes use of Swiper, however I’m nonetheless struggiling to get the icons to maneuver. I’m initiating the swiper occasion, however can not get the icons to by some means transfer the slides forwards and backwards.

var sliderInstance = doc.querySelector('#image-car .swiper-container').swiper;

$('#arr-next').on('click on', operate() {
sliderInstance.slideTo(2)
});

Any concepts, the right way to choose the icons and make them transfer the slider?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments