Disable layer animations

Heads up!

This documentation is for Smart Slider 3.3.12 and newer. If you're running an older version, update.

To disable layer animations in your slider, you need to use this code:

this.disabled.layerAnimations = true;

what you can insert into the  JavaScript callbacks of your slider. This code could help, if for example you want to support older browsers too, what we don't support and then you could create an "if" condition whether or not your layer animations should be turned off:

function browser_name(){
    /* your function to check if the given browser is used */
}

function browser_version(){
   /* your code to check what is the version number of the given browser */
}

if( browser_name() == 'Stone age browser' && browser_version() < 7 ){
   this.disabled.layerAnimations = true;
}

Other possible effects you can disable

There's a couple of other animations you can disable with JavaScript.

1

this.disabled.layerSplitTextAnimations

Disables the Split text animation.

2

this.disabled.backgroundAnimations

Disables the slide background animation.

3

this.disabled.postBackgroundAnimations

Disables the Ken Burns effect.

Disable all effects

You can also disable all effects together:
this.disabled = {
    layerAnimations: false,
    layerSplitTextAnimations: false,
    backgroundAnimations: false,
    postBackgroundAnimations: false
};