Animating SVG path choppy
Categories
(Core :: CSS Transitions and Animations, defect)
Tracking
()
People
(Reporter: ian.stewart, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/119.0
Steps to reproduce:
Tried to animate an SVG with css.
Actual results:
Animation of the SVG path is super choppy unless you inspect the specific SVG that has animating paths.
https://codepen.io/Ian-Stewart/pen/BaMYEoJ
Expected results:
SVG paths should animate smoothly.
Updated•2 years ago
|
Comment 1•2 years ago
|
||
It doesn't seem choppy to me but rather that half the circles aren't rendered at all. This might be an SVG/Graphics bug but it's also possible we're over-optimizing the animation too.
| Reporter | ||
Comment 2•2 years ago
|
||
Yes it is indeed rendering half the SVG/ Animation. However if you keep moving your mouse it shows a bit more (but choppy). The kicker is when you open the inspector and highlight the SVG the rendering and animation seem fine.
Comment 3•2 years ago
|
||
It seems to me that as long as I keep the mouse moving, the complete animation appears; but the moment the mouse stops moving, the animation also stops rendering, and then basically only half of each cycle appears, with the rendering stopping at the exact place where the mouse stopped, and then reappearing half-way further around the circle.
The interaction with mouse movement does feel to me more like it's an Animation bug than a Graphics one. Weird, though.
Updated•2 years ago
|
Description
•