Animate along a path #1426
-
So I use Where if I try to move the element from position 1 to 3 like this: runTiming(cx, x3, duration, callback)
runTiming(cy, y3, duration, callback) it will not go there straight but instead move along the red lines I know I can chain a bunch of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
you can have a value that goes from 0 to 1 and get the position for each value. |
Beta Was this translation helpful? Give feedback.
you can have a value that goes from 0 to 1 and get the position for each value.
You can get the total length of a path, and get each position, for instance at 20% (0.2).
We showcase how to get the total path length and the position for any length position in this tutorial: https://www.youtube.com/watch?v=7SCzL-XnfUU