Jequery动画共有三种显示和隐藏的方式
一、默认隐藏和显示
speed: 指的是动画的速度
easing:用来指定切换效果
fn:指的是动画播放完执行的函数
1. 对象名 .show( speed,“easing”,“fn”)
2. 对象名 . hide(speed,"easing","fn")
3. 对象名 .toggle(speed,"easing","fn")
二、滑动隐藏和显示
1. 对象名 .slideDown(speeding,"easing","fn")
2. 对象名 .slideUp(speeding,"easing","fn")
3. 对象名 .slideToggle(speeding,"easing","fn")
三、淡入和淡出隐藏和显示
1. 对象名 .fadeIn(speed,"easing","fn")
2. 对象名 .fadeOut(speed,"easing","fn")
3. 对象名 .fadeToggle(speed,"easing","fn")