Using jQuery animate on canvas objects

前端 未结 2 986
没有蜡笔的小新
没有蜡笔的小新 2020-12-16 04:40

I want to animate an html5 canvas element with just a simple shape drawn using the path mechanism. When hovering a mouse over it I want to zoom in on it, make it more opaqu

2条回答
  •  忘掉有多难
    2020-12-16 05:28

    well on this page google used some animated canvas icons. http://www.google.com/chromeos/features.html

    when you dig into code you'll see that they used JS Tweener. http://coderepos.org/share/wiki/JSTweener

    i think its more reliable than raphaelJS if google chooses it ;). Canvas animation code is really complex though. i barely understand whats happening.

提交回复
热议问题