Capítulo 60 de 411

Chapter 60: Timeline.killTweensOf()

Core Idea

killTweensOf() kills the tweens inside this timeline that affect the given targets, optionally scoped to specific properties.

Reference Tables

ParameterTypeDescription
targetsSelector | Array | Objectwhich target(s)
propsStringoptional comma-delimited property list
onlyActiveBooleanif true, only kill tweens currently active

Code Examples

tl.killTweensOf(".box", "opacity");

Connects To

  • gsap.killTweensOf(): the global, non-timeline-scoped equivalent.