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

Function addFadeIn

packages/sdk/examples/vanilla-editor.ts:108–118  ·  view source on GitHub ↗
(comp: Composition, targetId: string, delay = 0)

Source from the content-addressed store, hash-verified

106// UnsupportedOpError until it lands. Feature-detect with can() first.
107
108export 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
120export function addBounce(
121 comp: Composition,

Callers

nothing calls this directly

Calls 2

canMethod · 0.65
addGsapTweenMethod · 0.65

Tested by

no test coverage detected