Animation tokens

Animation is used to create a consistent and delightful experience across the design system. The system uses a set of tokens for transition duration and easing.

Tokens

Every token is prefixed with --dds-, use the variants concated with the base name to get the token value. Example: --dds-transition-x-slow or --dds-easing-ease-in-out.

Transition duration

Transition duration is used to define the time it takes to change from one state to another.

Hover over the boxes to see the transition duration.

TokenValueExample--dds-transition-xx-slow2000ms
--dds-transition-x-slow1000ms
--dds-transition-slow500ms
--dds-transition-medium200ms
--dds-transition-fast150ms
--dds-transition-x-fast100ms
Transition easing

Transition easing is used to define the speed curve of the transition effect.

Hover over the boxes to see the transition function.

TokenValueExample--dds-easing-ease-incubic-bezier(0.42, 0, 1, 1)
--dds-easing-ease-outcubic-bezier(0, 0, 0.58, 1)
--dds-easing-ease-in-outcubic-bezier(0.42, 0, 0.58, 1)
--dds-easing-linearlinear