Posted By

dcowgill on 10/20/10


Tagged

jquery fadeout


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

superman
mattvbiggs
dekehooper
Tyster
dubogii


JQuery fading a div after a certain time


 / Published in: jQuery
 

URL: http://papermashup.com/jquery-fading-a-div-after-a-certain-time/

  1. $(document).ready(function(){
  2. setTimeout(function(){
  3. $("div.mydiv").fadeOut("slow", function () {
  4. $("div.mydiv").remove();
  5. });
  6.  
  7. }, 2000);
  8. });

Report this snippet  

You need to login to post a comment.