MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / addBounce

Function addBounce

packages/sdk/examples/vanilla-editor.ts:120–135  ·  view source on GitHub ↗
(
  comp: Composition,
  targetId: string,
  overrides?: Partial<GsapTweenSpec>,
)

Source from the content-addressed store, hash-verified

118}
119
120export 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):
138export function insertKeyframe(comp: Composition, animationId: string, position: number): void {

Callers

nothing calls this directly

Calls 2

canMethod · 0.65
addGsapTweenMethod · 0.65

Tested by

no test coverage detected