pixi-reels

API reference

BounceContext

pixi-reels


pixi-reels / index / BounceContext

Defined in: spin/phases/ReelPhase.ts:17

What a custom bounce animation receives. See BounceOptions.animation.

Properties#

PropertyTypeDescriptionDefined in
basenumberWhere the container rests; return there.spin/phases/ReelPhase.ts:25
containerContainerreel.container, the thing to move.spin/phases/ReelPhase.ts:21
distancenumberOvershoot in px, already signed for the reel’s direction of travel.spin/phases/ReelPhase.ts:27
easestring-spin/phases/ReelPhase.ts:30
gsaptypeof gsap-spin/phases/ReelPhase.ts:19
main"x" | "y"The container property that is the travel axis.spin/phases/ReelPhase.ts:23
reelReel-spin/phases/ReelPhase.ts:18
secondsnumberTotal down-and-back time in seconds.spin/phases/ReelPhase.ts:29