首页 > 开发 > JS > 正文

jQuery实现的文字hover颜色渐变效果实例

2024-05-06 16:28:47
字体:
来源:转载
供稿:网友
这篇文章主要介绍了jQuery实现的文字hover颜色渐变效果,以完整实例形式分析了jQuery实现文字颜色渐变效果的相关技巧,涉及jQuery插件jquery-ui-1.8.16.custom.min.js的使用,需要的朋友可以参考下
 

本文实例讲述了jQuery实现的文字hover颜色渐变效果。分享给大家供大家参考,具体如下:

<html><head><script type="text/javascript" src="jquery-1.6.2.min.js"></script><script type="text/javascript" src="jquery-ui-1.8.16.custom.min.js"></script><script type="text/javascript">$(document).ready(function(){ $("a").hover(function(){ $("a").animate({width:"80%",height:"40%",fontSize:"100px"},1600,function(){ $("a").animate({color:"#FFFFFF"},1600); }); },function(){ $("a").animate({color:"blue"},1600,function(){ $("a").animate({width:"100px",height:"20px",fontSize:"14px"},1600); }); });});</script></head><body><a href="#" style="width:100px;height:20px;font-size:14px;border:red 1px solid;">我不是淡入淡出</a></body></html>


注:相关教程知识阅读请移步到JavaScript/Ajax教程频道。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表