Capítulo 95 de 411

Chapter 95: Timeline.vars

Core Idea

vars holds the original configuration object passed into the timeline's constructor (e.g. { onComplete: fn, repeat: 2 }).

Code Examples

let tl = gsap.timeline({ repeat: 2, onComplete: fn });
console.log(tl.vars.repeat); // 2