MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

transitions

MMO.core.transitions · 9 symboles · générée le 27 Oct 2026

function

linearFn

transitions.js:9

Build an easing that bends a linear ramp.

function MMO.core.transitions.linearFn(amount)
Espace de noms
MMO.core.transitions
amountnumberclamped to [-1,1]: 0 stays linear, negative eases in, positive eases out
retourneFunctionfunction(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)
Espace de noms
MMO.core.transitions
pownumberthe higher the sharper
retourneFunctionfunction(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)
Espace de noms
MMO.core.transitions
pownumberthe higher the sharper
retourneFunctionfunction(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)
Espace de noms
MMO.core.transitions
pownumberthe higher the sharper
retourneFunctionfunction(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)
Espace de noms
MMO.core.transitions
amplitudenumberhow far it overshoots
periodnumberhow tight the oscillation is (0.3 is the usual value)
retourneFunctionfunction(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)
Espace de noms
MMO.core.transitions
amplitudenumberhow far it overshoots
periodnumberhow tight the oscillation is (0.3 is the usual value)
retourneFunctionfunction(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)
Espace de noms
MMO.core.transitions
amplitudenumberhow far it overshoots
periodnumberhow tight the oscillation is
retourneFunctionfunction(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)
Espace de noms
MMO.core.transitions
profile
from
to
step
retourneobjectthe current values at this step
function

run

transitions.js:203

Run an animation

function MMO.core.transitions.run(profile, from, to, duration, callback)
Espace de noms
MMO.core.transitions
profile
from
to
duration
callback