Chapter 9 jQuery animations
jQuery offers three basic movies, the movies are standard, regular effect, jQuery also provides custom animation function.
Animation effects [08- demo jQuery animations (animate) .html]
9.1 three basic animation
Display (show) and hidden (hide) and switch (toggle) is a set of animation:
Slide (slideUp) and out at (slideDown) switching (slideToggle), similar effects as shutter doors
Fade (fadeIn) and fade (. FadeOut) switching (fadeToggle)
$obj. show ( [ speed] , [ callback] ) ;
slideDown ( ) / slideUp ( ) / slideToggle ( ) ; 同理
fadeIn ( ) / fadeOut ( ) ; fadeToggle ( ) ; 同理
9.2 Custom Animation
animate: Custom Animation
$ ( selector) . animate ( { params} , [ speed] , [ easing] , [ callback] ) ;
9.3 animation and stop animation queue
Execute multiple animations on the same element, then for the animation, the animation will be put back in the queue animation, animation, etc. in front of the execution will be completed execution (Lenovo: a train stop).
stop ( clearQueue, jumpToEnd) ;