Capítulo 55 de 411

Chapter 55: Timeline.globalTime()

Core Idea

globalTime() converts a local time on this timeline into the corresponding time on gsap.globalTimeline, accounting for all nesting and timeScales.

Reference Tables

ParameterTypeDescription
localTimeNumberthe local time to convert

Returns: Number (time on the global timeline).

Code Examples

tl.globalTime(1.5); // where "1.5s into this timeline" falls on the global clock