is possible to add callback into prepend method? I need to wait until DOM is rebuild and then start fade animation.
$("body").prepend(div);
$(div).css({
'opacity': 1
});
The animation is made with CSS3 transitions, so I only need to wait for DOM ready and then change the CSS opacity..
Here is fiddle with my problem...
Here's an update: http://jsfiddle.net/8MFJQ/4/
prepend doesn't have a callback because the DOM is ready with the call. I'm using Jquery's fadeIn and fadeOut as well to achieve wider browser coverage.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With