jquery animate()背景色渐变的处理


jquery animate函数不能处理背景色渐变,需要使用jquery.color插件

gitHub地址:https://github.com/jquery/jquery-color/

使用代码:

$(function(){
  $("#cdiv").animate(
    {
	  backgroundColor:'#FF0000'
	},1000
   ) })

演示:

http://runjs.cn/detail/xmax7vo3 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM