jQuery: The Write Less, Do More JavaScript Library

API/1.2/Effects

From jQuery JavaScript Library

(Redirected from Effects)
Jump to: navigation, search

NameType
Basics:

NameType
show( ) Returns: jQuery
Displays each of the set of matched elements if they are hidden.
show( speed, callback ) Returns: jQuery
Show all matched elements using a graceful animation and firing an optional callback after completion.
hide( ) Returns: jQuery
Hides each of the set of matched elements if they are shown.
hide( speed, callback ) Returns: jQuery
Hide all matched elements using a graceful animation and firing an optional callback after completion.
toggle( ) Returns: jQuery
Toggles each of the set of matched elements.
Sliding:

NameType
slideDown( speed, callback ) Returns: jQuery
Reveal all matched elements by adjusting their height and firing an optional callback after completion.
slideUp( speed, callback ) Returns: jQuery
Hide all matched elements by adjusting their height and firing an optional callback after completion.
slideToggle( speed, callback ) Returns: jQuery
Toggle the visibility of all matched elements by adjusting their height and firing an optional callback after completion.
Fading:

NameType
fadeIn( speed, callback ) Returns: jQuery
Fade in all matched elements by adjusting their opacity and firing an optional callback after completion.
fadeOut( speed, callback ) Returns: jQuery
Fade out all matched elements by adjusting their opacity and firing an optional callback after completion.
fadeTo( speed, opacity, callback ) Returns: jQuery
Fade the opacity of all matched elements to a specified opacity and firing an optional callback after completion.
Custom:

NameType
animate( params, durationeasingcallback ) Returns: jQuery
A function for making your own, custom animations.
animate( params, options ) Returns: jQuery
A function for making your own, custom animations.
stop( ) Returns: jQuery
Stops all the currently running animations on all the specified elements.
queue( ) Returns: Array<Function>
Returns a reference to the first element's queue (which is an array of functions).
queue( callback ) Returns: jQuery
Adds a new function, to be executed, onto the end of the queue of all matched elements.
queue( queue ) Returns: jQuery
Replaces the queue of all matched element with this new queue (the array of functions).
dequeue( ) Returns: jQuery
Removes a queued function from the front of the queue and executes it.