Capítulo 50 de 411

Chapter 50: Timeline.from()

Core Idea

from() inserts a .from()-style tween into the timeline — shorthand for add(gsap.from(...)).

Reference Tables

ParameterTypeDescription
targetObject | Array | Stringtarget(s) or selector text
varsObjectstarting values + special props (ease, onComplete, etc.)
positionNumber | Stringwhere in the timeline

Code Examples

tl.from(".box", { opacity: 0, y: 50 });

Connects To

  • Timeline.to() / fromTo(): the other tween-insertion shortcuts.