Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to: javascript fade in fade out text

First of all: I looked through other posts on stackoverflow and none of them had the information I was looking for.

Second: I'm new to programming ;)

I want to have a div on my website that fades in and fades out text. I've seen this on a few web sites and am pretty sure it is javaScript using the jQuery library.

Does anyone know of a good tutorial, or can tell me how to accomplish this?

like image 639
Keith Groben Avatar asked Feb 02 '11 01:02

Keith Groben


People also ask

How do you fadeIn fadeOut in JavaScript?

The jQuery fadeToggle() method toggles between the fadeIn() and fadeOut() methods. If the elements are faded out, fadeToggle() will fade them in. If the elements are faded in, fadeToggle() will fade them out.

How do I fade text in HTML?

You can use the onload="" HTML attribute and use JavaScript to adjust the opacity style of your element.


1 Answers

i just gave an answer on another question:

Using CSS for fade-in effect on page load

does this answer your question?

like image 105
Ned Avatar answered Sep 27 '22 22:09

Ned