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);
});
精彩评论