4 ms·
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 resol
by dgreensp 10y 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.
- JulianGarnier 10y agoSimply 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 https://github.com/juliangarnier/anime#motion-path)