效果方法
效果方法 | 说明 |
.show() | 显示匹配的元素 |
.hide() | 隐藏匹配的元素 |
.show(speed,[callback]) | 通过高度、宽度及透明度动画显示匹配的元素 |
.hide(speed,[callback]) | 通过高度、宽度及透明度动画隐藏匹配的元素 |
.toggle([speed],[callback]) | 显示或隐藏匹配的元素 |
.slideDown([speed],[callback]) | 以滑入的方式显示匹配的元素 |
.slideUp([speed],[callback]) | 以滑出的方式隐藏匹配的元素 |
.fadeIn([speed],[callback]) | 以淡入的方式显示匹配的元素 |
.fadeOut([speed],[callback]) | 以淡入的方式隐藏匹配的元素 |
.fadeTo(speed,opacity,[callback]) | 调整匹配元素的不透明度 |
.animate(attributes,[speed],[easing],[callback]) | 针对指定的CSS属性执行自定义动画 |
.animate(attributes,options) | .animate()的底层接口,支持对动画队列的控制 |
.stop([clearQueue],[jumpToEnd]) | 停止当前播放的动画,然后启动排列的动画 |
.queue() | 取得第一个匹配元素上的动画队列 |
.queue(callback) |
在动画队列的最后添加回调函数 |
.queue(newQueue) |
以新队列替换原队列 |
.dequeue() | 执行队列中的下一个动画 |
.slideToggle([speed],[callback]) | 以滑动的方式显示或隐藏匹配的元素 |