with the id name exampleDialog.
All the arguments provided to the show() method are optional. If the show() method is called with no
arguments, no animation takes place and only the CSS display property is set to display the element; for
element the display property would be set to block. If only the duration argument is specifi ed,
the action of displaying the element is animated via the provided duration with the default easing 'swing'.
The callback function provided to the show() method is executed when the animation has com-
pleted. In this case, the callback function resets the value of the animating variable to false so that
additional animations can take place.
The remainder of the script repeats the logic of the click() event assigned to the
element
with the id name exampleAnimationShow on two additional
elements. The
with id
name exampleAnimationHide receives a similar click() event that swaps out the show() method for
the hide() method. Likewise, the
element with id name exampleAnimationToggle receives a
click() event that swaps out the show() method for the toggle() method, which completes this dem-
onstration of the show(), hide(), and toggle() methods.
http://www.it-ebooks.info