Managing Effects
Prev Chapter 6. Effects Next

Managing Effects

jQuery provides several tools for managing animations.

$.fn.stop

Stop currently running animations on the selected elements.

$.fn.delay

Wait the specified number of milliseconds before running the next animation.

$('h1').show(300).delay(1000).hide(300);
jQuery.fx.off

If this value is true, there will be no transition for animations; elements will immediately be set to the target final state instead. This can be especially useful when dealing with older browsers; you also may want to provide the option to your users.


Copyright Rebecca Murphey, released under the Creative Commons Attribution-Share Alike 3.0 United States license.


Prev Up Next
Custom Effects with $.fn.animate Home Exercises