December 2013
Intermediate to advanced
384 pages
9h 54m
English
$("#box").show(1000, "linear", function() { $("#label").html("Shown!") });
The .show( [duration] [, easing] [, callback]) method provides the optional duration, easing, and callback options, allowing you to animate the show effect and make an easier transition as an element appears.
For example, the following code applies an animation of 1 second with linear easing and executes a simple callback function when showing an element:
$("#box").show(1000, "linear", function() { $("#label").html("Shown!") });
Read now
Unlock full access