jQuery .show('slow')方向? [英] jquery .show('slow') direction?
问题描述
是否可以在jQuery中更改$("selector").show('slow')
和hide('slow')
效果的方向?
Is it possible to change direction of $("selector").show('slow')
and hide('slow')
effects in jQuery?
我可以为其他效果(例如幻灯片和剪辑)定义方向,但没有用于演出或hide('slow')
I can define directions for other effects such as slide and clip, but there's no option for show or hide('slow')
推荐答案
show()
只是在页面上显示元素的任意函数.没有参数,它甚至不会有动画.如果要访问更精美的动画并控制其淡入的方向,则需要使用 .animate()
show()
is just an arbitrary function to display an element on a page. Without the argument it wouldn't even have an animation. If you want access to more elaborate animations and control the direction it fades in on you will need to use .animate()
或者使用额外的库来扩展jQuery的本机功能,例如 jQuery UI
Or use an extra library that extends jQuery's native functions like jQuery UI
show()
本身并没有任何额外的效果.
show()
on itself doesn't have any extra effects though..
这篇关于jQuery .show('slow')方向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!