A5下载 - 努力做内容最丰富最安全的下载站!

A5站长下载站

当前位置:A5下载 > 编程开发 > 网站开发 > jQuery实现的文字hover颜色渐变效果实例

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

时间:2016-02-22 10:03作者:fang人气:73

本文实例讲述了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>

希望本文所述对大家jQuery程序设计有所帮助。

标签jQuery,实现,文字,hover,颜色,渐变,效果,实例

相关下载

查看所有评论+

网友评论

网友
您的评论需要经过审核才能显示

公众号