jQuery Fade



$("Element").fadeIn(speed, [callback])

Fade in effect for all matching elements by varying opacity, and optionally trigger a callback function when the animation is complete.
Speed: Time, in milliseconds
Callback: callback function(optional)


$("Element").fadeOut(speed, [callback])

A fade-out effect for all matching elements is achieved by a change in opacity and optionally a trigger function after the animation is complete.
Speed: Time, in milliseconds
Callback: callback function(optional)


$("Element").fadeTo(speed, opacity, [callback])

Adjusts the opacity of all matching elements incrementally to the specified opacity, and optionally triggers a callback function when the animation is complete.
Speed: Time, in milliseconds
Opacity: The opacity value to adjust to(a number between 0 and 1, usually after the decimal point to retain 2).
Callback: callback function(optional)




Copyright 2014-2017 by DeveloperTut.com. All Rights Reserved.
TwitterGoogle+Facebook