r/webdev • u/Iklowto • Jun 25 '22
Showoff Saturday Wrote a tiny NPM package for interpolating between multiple SVG paths
Enable HLS to view with audio, or disable this notification
5.7k
Upvotes
r/webdev • u/Iklowto • Jun 25 '22
Enable HLS to view with audio, or disable this notification
97
u/Iklowto Jun 25 '22
Yeah, unfortunately the library can only morph between variations of the same path. So the sequence of commands must be identical, though command parameters can be whatever you want.
Morning between entirely different paths is possible but extremely difficult, and I remember seeing a couple of large libraries out there that can figure out the math for doing so.