[英]jQuery: Why doesn't this animate step function work?
I'm using a method as suggested in this Stackoverflow Question , to recreate the jQuery slideDown
function using animate
, so that I can use the step
property. 我正在使用此Stackoverflow问题中建议的方法,使用
animate
重新创建jQuery slideDown
函数,以便我可以使用step
属性。
However, I can't get the step property to work. 但是,我无法使步骤属性起作用。 Here is my code:
这是我的代码:
infoClone.animate({
"height": "show",
"marginTop": "show",
"marginBottom": "show",
"paddingTop": "show",
"paddingBottom": "show",
step : function() {
console.log('Step!');
}
});
You should change it to 你应该把它改成
infoClone.animate({
"height": "show",
"marginTop": "show",
"marginBottom": "show",
"paddingTop": "show",
"paddingBottom": "show"
}, {
step : function() {
console.log('Step!');
}
});
try this: 试试这个:
infoClone.animate({
"height": "show",
"marginTop": "show",
"marginBottom": "show",
"paddingTop": "show",
"paddingBottom": "show"
},
{
step : function() {
console.log('Step!');
}
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.