Created
February 13, 2014 17:01
-
-
Save fritids/8979155 to your computer and use it in GitHub Desktop.
jQuery fade-out DIV display after certain set time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //#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); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank You for leaving this Nugget here