Capítulo 82 de 411
set() adds a zero-duration tween that instantly applies values when the playhead reaches that point — shorthand for add(gsap.to(target, {duration: 0, ...})).
| Parameter | Type | Description |
|---|---|---|
target | Object | Array | String | target(s) or selector text |
vars | Object | properties to set |
position | Number | String | where in the timeline |
tl.set(".box", { visibility: "visible" }, "start");