Capítulo 52 de 411

Chapter 52: Timeline.getById()

Core Idea

getById() returns the Tween or Timeline inside this timeline that has the given id.

Reference Tables

ParameterTypeDescription
idStringthe id set in the child's vars at creation

Returns: Animation (Tween or Timeline).

Code Examples

tl.to(box, { id: "boxMove", x: 100 });
tl.getById("boxMove").pause();