-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Open
Labels
Description
Describe what the feature does
Add an offset to the animation with the svg.createMotionPath
Provide a code example of what the feature should look like
Before :
animate(['.object'], {
duration: 3000,
loop: true,
ease: 'linear',
...svg.createMotionPath('.path')
});
After :
animate(['.object'], {
duration: 3000,
loop: true,
ease: 'linear',
...svg.createMotionPath('.path', 0.5) //offset the animation by 50%
});
Describe alternatives you've considered
Manually edit the svg