Index

transitions

MMO.core.transitions · 9 symbols · generated 30 Sep 2026

function

linearFn

transitions.js:9

Build an easing that bends a linear ramp.

function MMO.core.transitions.linearFn(amount)
Namespace
MMO.core.transitions
amountnumberclamped to [-1,1]: 0 stays linear, negative eases in, positive eases out
returnsFunctionfunction(t: number): number, over [0,1]
function

powInFn

transitions.js:24

Build an accelerating easing: slow at the start, fast at the end.

function MMO.core.transitions.powInFn(pow)
Namespace
MMO.core.transitions
pownumberthe higher the sharper
returnsFunctionfunction(t: number): number, over [0,1]
function

powOutFn

transitions.js:35

Build a decelerating easing: fast at the start, slow at the end.

function MMO.core.transitions.powOutFn(pow)
Namespace
MMO.core.transitions
pownumberthe higher the sharper
returnsFunctionfunction(t: number): number, over [0,1]
function

powInOutFn

transitions.js:46

Build an easing that accelerates then decelerates, symmetrical around the midpoint.

function MMO.core.transitions.powInOutFn(pow)
Namespace
MMO.core.transitions
pownumberthe higher the sharper
returnsFunctionfunction(t: number): number, over [0,1]
function

elasticInFn

transitions.js:59

Build an easing that oscillates before settling, the wobble happening at the START.

function MMO.core.transitions.elasticInFn(amplitude, period)
Namespace
MMO.core.transitions
amplitudenumberhow far it overshoots
periodnumberhow tight the oscillation is (0.3 is the usual value)
returnsFunctionfunction(t: number): number, leaving [0,1] while it wobbles
function

elasticOutFn

transitions.js:74

Build an easing that oscillates before settling, the wobble happening at the END.

function MMO.core.transitions.elasticOutFn(amplitude, period)
Namespace
MMO.core.transitions
amplitudenumberhow far it overshoots
periodnumberhow tight the oscillation is (0.3 is the usual value)
returnsFunctionfunction(t: number): number, leaving [0,1] while it wobbles
function

elasticInOutFn

transitions.js:89

Build an easing that oscillates at BOTH ends.

function MMO.core.transitions.elasticInOutFn(amplitude, period)
Namespace
MMO.core.transitions
amplitudenumberhow far it overshoots
periodnumberhow tight the oscillation is
returnsFunctionfunction(t: number): number, leaving [0,1] while it wobbles
function

value

transitions.js:174

Get the value of a transition at a given step

function MMO.core.transitions.value(profile, from, to, step)
Namespace
MMO.core.transitions
profile
from
to
step
returnsobjectthe current values at this step
function

run

transitions.js:203

Run an animation

function MMO.core.transitions.run(profile, from, to, duration, callback)
Namespace
MMO.core.transitions
profile
from
to
duration
callback