Trigger layer event with JavaScript

You can trigger a  custom event with JavaScript code like this:

n2ss.trigger(jQuery('.n2-ss-slide-active'), 'eventname');

For example, trigger the "switch" event on slide switching at slider #47:

n2ss.ready(47, function(slider, sliderElement) {
    function(e, animation, previousSlideIndex, currentSlideIndex) {
       n2ss.trigger(jQuery('.n2-ss-slide-active'), 'switch');
If you need to trigger events on a static slide, use the .n2-ss-static-slide class instead.
n2ss.trigger(jQuery('.n2-ss-static-slide'), 'switch');