开发者

Custom jQuery animation ignores its place in queue when chained and starts immediately

Updated:

I made a chainable animation effect plugin for jQuery (see my JSFiddle). Within the custom effect, I use jquery's .animation() effect, which should place the animation in to jquery's built-in animation queue. When I try to chain animations it begins my custom .horizontalBlinds() animation immediately, without placing it in jquery's built-in animation queue. How can I get it to wait its 开发者_如何学Pythonturn in a queue like all the other built-in jquery effects?

// both effects start at the same time
$(element).fadeIn().horizontalBlinds(4);


What about using fadeTo somehow

$('#element').hide().fadeTo(..., function() {
  $(this).fadeIn().horizontalBlinds(4);
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜