简体   繁体   English

jQuery:Div不显示(easeOutBounce)

[英]jQuery: Div not showing (easeOutBounce)

I have this script: 我有这个脚本:

$('select').change(function(){
    $('#showme').animate({top: '-=100px'}, 500, 'easeOutBounce');
});

That is just not working. 那是行不通的。 I have jquery and jquery.easing.min.js linked. 我有jquery和jquery.easing.min.js链接。 I also tried linking the jQuery UI library up, but that didn't do anything. 我还尝试了将jQuery UI库链接起来,但是没有做任何事情。 What am I missing? 我想念什么?

Here's my jsFiddle: 这是我的jsFiddle:

http://jsfiddle.net/Rhz8x/ http://jsfiddle.net/Rhz8x/

Try removing display: none from the element you're trying to animate. 尝试删除display: none您要设置动画的元素中display: none显示。 It worked for me. 它为我工作。

jsFiddle . jsFiddle

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM