BounceContext
pixi-reels / index / BounceContext
Interface: BounceContext
Defined in: spin/phases/ReelPhase.ts:11
What a custom bounce animation receives. See BounceOptions.animation.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
base | number | Where the container rests; return there. | spin/phases/ReelPhase.ts:19 |
container | Container | reel.container, the thing to move. | spin/phases/ReelPhase.ts:15 |
distance | number | Overshoot in px, already signed for the reel’s direction of travel. | spin/phases/ReelPhase.ts:21 |
ease | string | - | spin/phases/ReelPhase.ts:24 |
gsap | typeof gsap | - | spin/phases/ReelPhase.ts:13 |
main | "x" | "y" | The container property that is the travel axis. | spin/phases/ReelPhase.ts:17 |
reel | Reel | - | spin/phases/ReelPhase.ts:12 |
seconds | number | Total down-and-back time in seconds. | spin/phases/ReelPhase.ts:23 |