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

Function applyTweenPosition

packages/sdk-playground/src/main.ts:674–676  ·  view source on GitHub ↗
(tween: GsapTweenSpec, pos: string)

Source from the content-addressed store, hash-verified

672}
673
674function applyTweenPosition(tween: GsapTweenSpec, pos: string) {
675 if (pos !== "") tween.position = parseFloat(pos);
676}
677
678function readTweenSpecFromForm(f: TweenFormInputs): GsapTweenSpec {
679 const propKey = f.prop.value.trim() || "x";

Callers 1

readTweenSpecFromFormFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected