[英]How can I prevent this jquery text panel from sliding top to bottom the first time it's hovered?
[英]jquery sliding from top to bottom
http://jsfiddle.net/Hx65Q/3/我希望滑块不是来自左侧,但它必须从顶部打开。 这个怎么做?
$("button" ).click(function() {
$('.login').toggle('slide', { duration: 1000, easing: 'easeOutBounce',
});
});
使用direction: 'up'
可以很容易地实现。
$("button").click(function () {
$('.login').toggle('slide', {
duration: 1000,
easing: 'easeOutBounce',
direction: 'up'
});
});
试试这个简单的代码。
$("button" ).click(function() {
$('.login').slideToggle( {
duration: 1000,
easing: 'easeOutBounce',
});
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.