如何:javascript 淡入淡出文本

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4869836/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 14:31:46  来源:igfitidea点击:

How to: javascript fade in fade out text

javascriptfadeinfadeout

提问by Keith Groben

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

首先:我浏览了有关 stackoverflow 的其他帖子,但没有一个包含我正在寻找的信息。

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.

我想在我的网站上有一个淡入淡出文本的 div。我在一些网站上看到过这个,我很确定它是使用 jQuery 库的 javaScript。

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

有谁知道一个好的教程,或者可以告诉我如何做到这一点?

采纳答案by limc

Here you go :)

干得好 :)

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

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.

另一个好的是Scriptaculous。那里也有一堆演示。

回答by Ned

i just gave an answer on another question:

我刚刚回答了另一个问题:

Using CSS for fade-in effect on page load

使用 CSS 实现页面加载的淡入效果

does this answer your question?

这回答了你的问题了吗?