(comp: Composition, targetId: string, delay = 0)
| 106 | // UnsupportedOpError until it lands. Feature-detect with can() first. |
| 107 | |
| 108 | export function addFadeIn(comp: Composition, targetId: string, delay = 0): string | null { |
| 109 | const tween: GsapTweenSpec = { |
| 110 | method: "from", |
| 111 | position: delay, |
| 112 | duration: 0.4, |
| 113 | ease: "power2.out", |
| 114 | fromProperties: { opacity: 0 }, |
| 115 | }; |
| 116 | if (!comp.can({ type: "addGsapTween", target: targetId, id: "preflight", tween })) return null; |
| 117 | return comp.addGsapTween(targetId, tween); |
| 118 | } |
| 119 | |
| 120 | export function addBounce( |
| 121 | comp: Composition, |
nothing calls this directly
no test coverage detected