Rect Transform Animations (motion)

The motion property is used to animate changes to the rect transform of an element. This property is unique to React Unity and does not exist in standard CSS.

The property must have the format <duration> <delay> <timing-function>. The properties can also be set individually as motion-duration, motion-delay, and motion-timing-function.

:root {
  align-items: flex-start;
}

button, button :text {
  motion: 0.6s 0.1s ease-in-out;
}