Edit this page

up.motion up.motion.config
Configuration object

Sets default options for animations and transitions.


Value

[config.duration=175]
optional

The default duration for all animations and transitions (in milliseconds).

number
[config.easing='ease']
optional

The default timing function that controls the acceleration of animations and transitions.

See MDN documentation for a list of pre-defined timing functions.

string
[config.enabled]
optional

Whether animation is enabled.

By default, animations are enabled, unless the user has configured their system to minimize non-essential motion.

Set this to false to disable animation globally. This can be useful in full-stack integration tests.

boolean