Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试围绕给定点制作三角形动画。我希望形状使用角(在右侧)作为锚点进行动画处理,但目前我似乎只能让它从我认为的中心进行动画处理。我该怎么做呢?
http://jsfiddle.net/3LXXQ/
您可以将原点坐标添加到旋转变换中。
path_p2.animate({transform: "r360,456.933,372.57"}, 2000);
这是你更新的小提琴