Skip to content

Conversation

grahnen
Copy link

@grahnen grahnen commented May 14, 2025

Auto-animate already acts on SVGs, but it does not work very well. The animations "jump", and it only works for some svg objects. This PR allows animation of the d attribute on <path>, and fixes the jumpiness of SVG animations with what I think is a hack. Specifically, in autoanimate.js, for things with <svg> as parents, we multiply the deltas by a factor of 2.

I have no idea why it works, and this would probably be good to figure out before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants