You must have seen this effect when a particular element is visible for few seconds and then it fades out. Such things are used for notifications. You can also implement the same in your web application with jQuery. It is really very simple.
Find below jQuery code to show the div for 3 seconds and after that it fades out automatically. Use setTimeout() function to achieve this.
ref :http://www.jquerybyexample.net/2012/12/make-div-disappear-or-appear-after-few-seconds-jquery.html
Also Read:
| $(document).ready( function () { |
2 | setTimeout( function () { |
3 | $( ".content" ).fadeOut(1500); |
No comments:
Post a Comment