开发者

Any existing javascript library to change svg fill color? animated preferable [closed]

开发者 https://www.devze.com 2023-01-09 16:30 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
开发者_JS百科

Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist

Closed 9 years ago.

Improve this question

googled but cant be found ...


http://keith-wood.name/svg.html#anim


Raphael http://dev.opera.com/articles/view/raphael-a-javascript-api-for-svg/


add the jquery.color plugin, then add to your code:

  jQuery.Color.hook( "fill stroke" );

then the animate function is what you would expect

    $('g').animate({
        'fill': '#07F',
    }, {
        duration: 1150,
        queue: false,
        complete: function() {}
    })
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号