December 2013
Intermediate to advanced
384 pages
9h 54m
English
$("img").fadeIn(1000, "swing");
The .fadeIn( [duration] [, easing] [, callback]) method provides the optional duration, easing, and callback options that allow you to animate fading the opacity of an element from its current value to 1.
For example, the following code applies an animation of 1 second with swing easing to all image elements:
$("img").fadeIn(1000, "swing");
Read now
Unlock full access