Edit this page

up.motion up.motion.config
JavaScript property

Sets default options for animations and transitions.


[config.duration=175] number optional

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

[config.easing='ease'] string optional

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

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

[config.enabled] boolean 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.