Duration

Duration

(From Motion guidelines)

Motion duration in Carbon is normally calculated based on the style and size of the motion. This calculation is an upcoming feature. Currently, there are six static value tokens for easier implementation.

Properties

Link copied to clipboard
const val fast01: Int = 70

Micro-interactions such as button and toggle.

Link copied to clipboard
const val fast02: Int = 110

Micro-interactions such as fade.

Link copied to clipboard
const val moderate01: Int = 150

Micro-interactions, small expansion, short distance movements.

Link copied to clipboard
const val moderate02: Int = 240

Expansion, system communication, toast.

Link copied to clipboard
const val slow01: Int = 400

Large expansion, important system notifications.

Link copied to clipboard
const val slow02: Int = 700

Background dimming.