Hi!
I have a problem with the documentation in order to create a custom callback on the event of changing the slide.
Firstly, it says that I should use _N2 which is I think deprecated and replaced with N2R.
jQuery(document).ready(()=>{
// moving slider
N2R('#n2-ss-2', function($, slider){
slider.sliderElement[0].addEventListener('mainAnimationStart',
function(e) {
alert(e);
console.log('Your slider starts to switch to another slide.');
});
slider.sliderElement[0].addEventListener('mainAnimationComplete',
function(e) {
console.log('Your slider finished moving to the other slide.');
});
});
// moving slider
This is the code for my slider. I managed to change the one from docs to the point of no thrown errors, but it doesn’t do anything.
Can I please get help with that?
The page I need help with: [log in to see the link]