Skip to content

Instantly share code, notes, and snippets.

@fritids
Created February 13, 2014 17:01
Show Gist options
  • Select an option

  • Save fritids/8979155 to your computer and use it in GitHub Desktop.

Select an option

Save fritids/8979155 to your computer and use it in GitHub Desktop.
jQuery fade-out DIV display after certain set time
//#1 http://stackoverflow.com/questions/15118802/jquery-fade-out-div-display-after-certain-set-time
$("#message").fadeIn('slow').delay(5000).fadeOut('slow');
//or http://stackoverflow.com/questions/17677398/hide-a-div-after-5-seconds-or-when-the-user-clicks-the-close-link
$(window).load(function(){
setTimeout(function(){ $('.video-field-new').fadeOut() }, 5000);
});
@Santolama

Copy link
Copy Markdown

Thank You for leaving this Nugget here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment