How can I make a <h3> fade out or just hide itself on my page after a few seconds once the page has loaded?
How can I make a <h3> fade out or just hide itself on my
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use a simple
.delay()call, like this:On
document.readythis selects all<h3>elements and adds a 3 second delay before their.fadeOut(), just adjust the selector as needed, for example:h3.messagefor a<h3 class="message">.Here’s the more general non-
.delay()version of delaying any action: