Capítulo 93 de 411

Chapter 93: Timeline.tweenFromTo()

Core Idea

tweenFromTo() creates a linear tween that scrubs the timeline's playhead from one time/label to another and then stops.

Reference Tables

ParameterTypeDescription
fromPositionNumber | Labelstarting point
toPositionNumber | Labelending point
varsObjecttween settings (duration, ease, onComplete...)

Returns: Tween.

Code Examples

tl.tweenFromTo("start", "end", { duration: 2 });

Connects To

  • Timeline.tweenTo(): the single-destination version of the same idea.