API reference
SpeedPresets
pixi-reels / index / SpeedPresets
const SpeedPresets: {
NORMAL: {
accelerationDuration: 300;
accelerationEase: "power2.in";
anticipationDelay: 450;
bounceDistance: 22;
bounceDuration: 220;
decelerationEase: "power2.out";
minimumSpinTime: 500;
name: "normal";
spinDelay: 100;
spinSpeed: 30;
stopDelay: 140;
};
SUPER_TURBO: {
accelerationDuration: 50;
accelerationEase: "power1.in";
anticipationDelay: 0;
bounceDistance: 8;
bounceDuration: 90;
decelerationEase: "power1.out";
minimumSpinTime: 100;
name: "superTurbo";
spinDelay: 0;
spinSpeed: 80;
stopDelay: 0;
};
TURBO: {
accelerationDuration: 200;
accelerationEase: "power2.in";
anticipationDelay: 250;
bounceDistance: 14;
bounceDuration: 140;
decelerationEase: "power2.out";
minimumSpinTime: 300;
name: "turbo";
spinDelay: 30;
spinSpeed: 50;
stopDelay: 0;
};
};
Defined in: config/SpeedPresets.ts:12
Built-in speed profiles covering common slot game needs.
Bounce values are tuned for the typical 120-200px symbol range: a short,
firm settle, about a sixth of a cell, so a landing reads as a stop and not
a spring. For larger or smaller symbols, register a custom profile or
override bounceDistance. bounceDuration is the total time for the
two-leg bounce (down then back).