Wednesday, 18 September 2013

jquery - run effects one after another to get smooth animation

jquery - run effects one after another to get smooth animation

I have the following piece of code:
$('#content').fadeOut().html('').queue(function() {});
$('#content').append(jQuery(data).find("#content").clone()).html();
$('#content').fadeIn();
I want these effects to run after the previous one is done however they
all happen together!!
I tried using queue but was not successful.

No comments:

Post a Comment