非常简单的jQuery div显示隐藏效果
January 8th, 2010
1 comment
Tips:You can change the code before run.
节选自原文:http://devsnippets.com/article/10-transition-effects-the-art-of-showinghiding-content.html
1.Jquery实现的淡入淡出效果

这种淡入淡出的效果可以应用在图片,文字片段,甚至任何节点,未激活时该效果显示30%的透明度,鼠标hover效果为100%的透明度,很适合在网页的局部内容表现上使用。
- $(document).ready(function(){
- $("ELEMENT HERE").fadeTo("slow", 0.3);
- $("ELEMENT HERE").hover(function(){
- $(this).fadeTo("slow", 1.0);
- },function(){
- $(this).fadeTo("slow", 0.3);
- });
- });
Recent Comments