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

Function addBounceIn

packages/sdk/examples/react-embed.ts:93–103  ·  view source on GitHub ↗
(comp: Composition, targetId: string)

Source from the content-addressed store, hash-verified

91// lands — feature-detect with can() and disable the panel control if false.
92
93export 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
105export function updateEase(comp: Composition, animationId: string, ease: string): void {
106 if (!comp.can({ type: "setGsapTween", animationId, properties: { ease } })) return;

Callers

nothing calls this directly

Calls 2

canMethod · 0.65
addGsapTweenMethod · 0.65

Tested by

no test coverage detected