How to: javascript fade in fade out text

Keith Groben picture Keith Groben · Feb 2, 2011 · Viewed 34.6k times · Source

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?

Answer

limc picture limc · Feb 2, 2011

Here you go :)

http://api.jquery.com/category/effects/

Click on the effects you want, there are demos you can click around and copy the code from.

Another good one is Scriptaculous. There are bunch of demos there too.