问题
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?
回答1:
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.
回答2:
i just gave an answer on another question:
Using CSS for fade-in effect on page load
does this answer your question?
来源:https://stackoverflow.com/questions/4869836/how-to-javascript-fade-in-fade-out-text