Hacker News new | ask | show | jobs
by dgreensp 3648 days ago
The only documentation of the anime.path function is the example: anime.path('path')

I think I can guess how to use it -- the argument is a "target" that resolves to an SVG path element (in the example, the only SVG path element on the page), and some processing is performed on the path element to get some sort of path object -- but it might help to clarify.

1 comments

Simply use the path object created by anime.path() as a value of one of your transform property (doc updated https://github.com/juliangarnier/anime#motion-path)