transitions
MMO.core.transitions · 9 symbols · generated 30 Sep 2026
linearFn
transitions.js:9Build an easing that bends a linear ramp.
- Namespace
MMO.core.transitions
| amount | number | clamped to [-1,1]: 0 stays linear, negative eases in, positive eases out |
| returns | Function | function(t: number): number, over [0,1] |
powInFn
transitions.js:24Build an accelerating easing: slow at the start, fast at the end.
- Namespace
MMO.core.transitions
| pow | number | the higher the sharper |
| returns | Function | function(t: number): number, over [0,1] |
powOutFn
transitions.js:35Build a decelerating easing: fast at the start, slow at the end.
- Namespace
MMO.core.transitions
| pow | number | the higher the sharper |
| returns | Function | function(t: number): number, over [0,1] |
powInOutFn
transitions.js:46Build an easing that accelerates then decelerates, symmetrical around the midpoint.
- Namespace
MMO.core.transitions
| pow | number | the higher the sharper |
| returns | Function | function(t: number): number, over [0,1] |
elasticInFn
transitions.js:59Build an easing that oscillates before settling, the wobble happening at the START.
- Namespace
MMO.core.transitions
| amplitude | number | how far it overshoots |
| period | number | how tight the oscillation is (0.3 is the usual value) |
| returns | Function | function(t: number): number, leaving [0,1] while it wobbles |
elasticOutFn
transitions.js:74Build an easing that oscillates before settling, the wobble happening at the END.
- Namespace
MMO.core.transitions
| amplitude | number | how far it overshoots |
| period | number | how tight the oscillation is (0.3 is the usual value) |
| returns | Function | function(t: number): number, leaving [0,1] while it wobbles |
elasticInOutFn
transitions.js:89Build an easing that oscillates at BOTH ends.
- Namespace
MMO.core.transitions
| amplitude | number | how far it overshoots |
| period | number | how tight the oscillation is |
| returns | Function | function(t: number): number, leaving [0,1] while it wobbles |
value
transitions.js:174Get the value of a transition at a given step
- Namespace
MMO.core.transitions
| profile | ||
| from | ||
| to | ||
| step | ||
| returns | object | the current values at this step |
run
transitions.js:203Run an animation
- Namespace
MMO.core.transitions
| profile | ||
| from | ||
| to | ||
| duration | ||
| callback |