Effects and Animation Methods
The methods described here produce visual effects and custom animations. Most return the jQuery object on which they are called; see Chapter 5.
- Animation options
complete duration easing queue specialEasing step
jQuery.fx.offDisables all effects and animations when set to
true.animate(props,opts)Animates the CSS properties specified by the
propsobject on each selected element, using the options specified byopts. See Custom Animations for details of both objects.animate(props, [duration], [easing], [f()])Animates the CSS properties specified by
propson each selected element, using the specifieddurationandeasingfunction. Invokesfas a method of each selected element when done.clearQueue([qname="fx"])Clears the effects queue or the named queue for each selected element.
delay(duration, [qname="fx"])Adds a delay of the specified duration to the effects queue or the named queue.
dequeue([qname="fx"])Removes and invokes the next function on the effects queue or the named queue. It is not normally necessary to dequeue the effects queue.
fadeIn([duration=400],[f()])fadeOut([duration=400],[f()])Fade the selected elements in or out by animating their opacity for
durationms. When complete, invokef, if specified, as a method of each selected element.fadeTo(duration,opacity, [f()])Animates the CSS opacity of the selected elements to
opacityover the specifiedduration. When complete, invokesf, if specified, as a method of each selected element.hide()hide( ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access