-
Book Overview & Buying
-
Table Of Contents
jQuery 1.4 Reference Guide
By :
These methods allow us to quickly apply commonly-used effects with a minimum of configuration.
Display the matched elements.
.show([duration][, callback])
duration (optional): A string or number determining how long the animation will run
callback (optional): A function to call once the animation is complete
The jQuery object, for chaining purposes.
With no parameters, the .show() method is the simplest way to display an element.
$('.target').show();The matched elements will be revealed immediately with no animation. This is roughly equivalent to calling .css('display', 'block'), except that the display property is restored to whatever it was initially. If an element has a display value of inline, then is hidden and shown, it will once again be displayed inline.
When a duration is provided, .show() becomes an animation method. The .show() method animates the width, height, and opacity of the matched elements simultaneously.
Durations...
Change the font size
Change margin width
Change background colour