(comp: Composition, targetId: string)
| 91 | // lands — feature-detect with can() and disable the panel control if false. |
| 92 | |
| 93 | export function addBounceIn(comp: Composition, targetId: string): string | null { |
| 94 | const tween = { |
| 95 | method: "from", |
| 96 | position: 0, |
| 97 | duration: 0.5, |
| 98 | ease: "bounce.out", |
| 99 | fromProperties: { y: 40, opacity: 0 }, |
| 100 | } as const; |
| 101 | if (!comp.can({ type: "addGsapTween", target: targetId, id: "preflight", tween })) return null; |
| 102 | return comp.addGsapTween(targetId, tween); |
| 103 | } |
| 104 | |
| 105 | export function updateEase(comp: Composition, animationId: string, ease: string): void { |
| 106 | if (!comp.can({ type: "setGsapTween", animationId, properties: { ease } })) return; |
nothing calls this directly
no test coverage detected