Capítulo 93 de 411
tweenFromTo() creates a linear tween that scrubs the timeline's playhead from one time/label to another and then stops.
| Parameter | Type | Description |
|---|---|---|
fromPosition | Number | Label | starting point |
toPosition | Number | Label | ending point |
vars | Object | tween settings (duration, ease, onComplete...) |
Returns: Tween.
tl.tweenFromTo("start", "end", { duration: 2 });