Title: Documentation deprecated?
Last modified: September 29, 2021

---

# Documentation deprecated?

 *  Resolved [Skwrn](https://wordpress.org/support/users/skwrn/)
 * (@skwrn)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/documentation-deprecated/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdocumentation-deprecated%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Gabor](https://wordpress.org/support/users/nextendweb_gabor/)
 * (@nextendweb_gabor)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/documentation-deprecated/#post-14921391)
 * Hi [@skwrn](https://wordpress.org/support/users/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](https://smartslider3.com/contact-us/support/?topic=Other)
   where we can check your website’s codes!
 *  Thread Starter [Skwrn](https://wordpress.org/support/users/skwrn/)
 * (@skwrn)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/documentation-deprecated/#post-14921459)
 * 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.

 * ![](https://ps.w.org/smart-slider-3/assets/icon.svg?rev=2307688)
 * [Smart Slider 3](https://wordpress.org/plugins/smart-slider-3/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-slider-3/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-slider-3/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-slider-3/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-slider-3/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-slider-3/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [SmartSlider3](https://wordpress.org/support/topic-tag/smartslider3/)

 * 2 replies
 * 2 participants
 * Last reply from: [Skwrn](https://wordpress.org/support/users/skwrn/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/documentation-deprecated/#post-14921459)
 * Status: resolved