Ability to toggle all animations/transitions/fades in jQuery? -


i have application uses jquery transition/fade/animate elements within ui (ie panel slide out side when toggled visible). give user option toggle of 'effects' via checkbox, depending on how set workflow of application.

so instead of hidden state > effect/transition > visible state hidden state > visible state based on whether transitions enabled (most via checkbox).

is possible without rewriting of hidden/visible states based on checkbox? there form of select-all remove effect?

you can globally turn off jquery animations changing value of:

jquery.fx.off 

as in:

// disable jquery animations jump end state jquery.fx.off = true; 

jquery doc here.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -