Skip to content

Home > @unseenco/backstage-gsap > registerGsapAnimation

registerGsapAnimation() function

Registers a GSAP tween for Backstage sequence bridging and creates an outline proxy object under GSAP/<label> (namespace configurable).

The animation is paused immediately so Backstage can drive progress.

Signature:

typescript
export declare function registerGsapAnimation(animation: GsapTweenLike, sheet: ISheet, options: RegisterGsapAnimationOptions): RegisterGsapAnimationResult;

Parameters

ParameterTypeDescription
animationGsapTweenLike
sheetISheet
optionsRegisterGsapAnimationOptions

Returns:

RegisterGsapAnimationResult