pixi-reels

TumbleFallConfig

pixi-reels


pixi-reels / index / TumbleFallConfig

Interface: TumbleFallConfig

Defined in: cascade/TumbleConfig.ts:9

Properties#

PropertyTypeDescriptionDefined in
cellOrder?"auto" | "endFirst" | "startFirst"Which cell of each reel begins its fall first. - 'auto' (default). the cell at the gravity-EXIT end goes first, so the column drains from the edge symbols are leaving by. Under the usual downward gravity that is the bottom cell, which pairs with the per-reel left-to-right stagger from speed.spinDelay to give the canonical “bottom-left falls first, top-right last” feel of commercial tumble slots. Flip gravity and the stagger flips with it. - 'endFirst'. always the cell at the larger main coordinate (bottom / right) first, whichever way gravity points. - 'startFirst'. always the cell at the smaller main coordinate (top / left) first. Reads as the column “peeling” away from that edge. 'endFirst' and 'startFirst' are geometric, like the buffers: they name an end of the strip, not a direction of travel. Only 'auto' follows gravity.cascade/TumbleConfig.ts:45
cellStagger?numberDelay between successive cells starting their fall, in ms. 0 makes every cell fall together. Default 0.cascade/TumbleConfig.ts:25
duration?numberHow long each symbol’s fall-out tween runs, in ms. Default 300.cascade/TumbleConfig.ts:13
ease?stringGSAP easing string for the fall trajectory. Default 'sine.in' (gravity feel). Anything from gsap.com/docs/v3/Eases works.cascade/TumbleConfig.ts:19