答案 0 :(得分:4)
答案 1 :(得分:1)
答案 2 :(得分:0)
添加jquery.color插件,然后添加到您的代码中:
jQuery.Color.hook( "fill stroke" );
然后动画功能就是你所期望的
$('g').animate({
'fill': '#07F',
}, {
duration: 1150,
queue: false,
complete: function() {}
})