Sivo 悉见

jquery.color.animations.js实现背景颜色渐变

匿名 · 更新于 2013/12/17

在页面中引入JQuery.js文件,
然后接着在下边引入jquery.color.animations.js文件,即可利用JQuery的animate实现控制背景颜色渐变的效果
 

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.color.animations.js"></script>
<script type="text/javascript">
    $obj.animate({
	  backgroundColor:‘red',
    },1000);
</script>
<div id="test" style='width:100px;height:100px;backgroundColor:green'></div> 
jquery.color.animations.js下载