• Resolved skwrn

    (@skwrn)


    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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Gabor

    (@nextendweb_gabor)

    Hi @skwrn!

    I checked it out and the documentation’s codes are correct, so it should be _N2.r and not N2R. Is it possible, that you have an older Smart Slider version? If you do, you should update to the latest version to make sure our codes are working. If you have the latest version, please send me a link either here or through our form:
    https://smartslider3.com/contact-us/support/?topic=Other
    where we can check your website’s codes!

    Thread Starter skwrn

    (@skwrn)

    My oh my! Thank you, actually updating the plugin helped, and afterwards the code from documentation started working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Documentation deprecated?’ is closed to new replies.