I was using
element.css('fill','#000000');
and it works, but now I want to animate a fill so I wrote this:
$(element).animate({'fill': '#000000'}, 'slow');
but this doesn't work, why? I would add, I am working on SVG file.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…