Capítulo 42 de 411
call() is a shorthand for inserting a plain function call into the timeline, equivalent to add(gsap.delayedCall(...)) with less code.
| Parameter | Type | Default | Description |
|---|---|---|---|
callback | Function | — | function to call |
params | Array | null | arguments to pass |
position | * | "+=0" | where in the timeline |
Returns: self.
tl.call(() => console.log("halfway"), null, 2);
gsap.delayedCall() when the call is already conceptually part of a timeline sequence.