jQuery fadeIn and fadeOut error messages with a delay

A simple jQuery snippet to fade out a flash error afater it loads. The Fade in doesn’t seem to be working 100% correct yet but it is good enough for now.

 $(document).ready(function(){

$("#flash-message").fadeIn("slow");

$("#flash-message").animate({opacity: 1.0}, 3000)

$("#flash-message").fadeOut("slow");

});


Effect Delay Trick ยป Learning jQuery – Tips, Techniques, Tutorials

http://docs.jquery.com/Special:Search?ns0=1&search=delay&go=

Leave a Reply

Your email address will not be published. Required fields are marked *