SVG
A collection of utility functions to help with SVG morphing, line drawing and motion path animations.
All SVG functions are available on the svg
object imported from the main 'animejs'
module:
import { svg } from 'animejs';
svg.morphTo();
svg.createMotionPath();
svg.createDrawable();
Or imported directly from the main 'animejs'
module:
import { morphTo, createMotionPath, createDrawable } from 'animejs';
Or imported as a standalone module from the 'animejs/svg'
subpath:
import { morphTo, createMotionPath, createDrawable } from 'animejs/svg';
In this section