( comp: Composition, targetId: string, overrides?: Partial<GsapTweenSpec>, )
| 118 | } |
| 119 | |
| 120 | export function addBounce( |
| 121 | comp: Composition, |
| 122 | targetId: string, |
| 123 | overrides?: Partial<GsapTweenSpec>, |
| 124 | ): string | null { |
| 125 | const tween: GsapTweenSpec = { |
| 126 | method: "from", |
| 127 | position: 0, |
| 128 | duration: 0.6, |
| 129 | ease: "bounce.out", |
| 130 | fromProperties: { y: 60, opacity: 0 }, |
| 131 | ...overrides, |
| 132 | }; |
| 133 | if (!comp.can({ type: "addGsapTween", target: targetId, id: "preflight", tween })) return null; |
| 134 | return comp.addGsapTween(targetId, tween); |
| 135 | } |
| 136 | |
| 137 | // Keyframe editing (addGsapKeyframe / removeGsapKeyframe — v1, promoted 2026-06-09): |
| 138 | export function insertKeyframe(comp: Composition, animationId: string, position: number): void { |
nothing calls this directly
no test coverage detected