Rombo

Duration

Customize animation duration

Basic Usage

Control how long animations take using the motion-duration-{value} utility:

<div class="motion-preset-fade motion-duration-2000">Slow fade in</div>
Slow fade in

Default Value

The default duration for all animations is 700ms if no duration modifier is specified.

Available Values

These are the theme default values. You can customize the theme to add your own values to the motionDuration property or use arbitrary values.

ClassValue
motion-duration-00s
motion-duration-7575ms
motion-duration-100100ms
motion-duration-150150ms
motion-duration-200200ms
motion-duration-300300ms
motion-duration-500500ms
motion-duration-700700ms
motion-duration-10001000ms
motion-duration-15001500ms
motion-duration-20002000ms
motion-duration750ms
motion-duration-[10s]Arbitrary value

Property-Specific Duration

Apply duration to specific properties using a slash /:

<div class="motion-duration-2000/rotate motion-rotate-in-180 motion-opacity-in-0">
  Slow rotation, default duration opacity
</div>
Slow rotation, default duration opacity

Examples

Fast Animation

<div class="motion-preset-fade motion-duration-100">Quick fade</div>
Quick fade

Slow Animation

<div class="motion-preset-fade motion-duration-[3s]">Very slow fade</div>
Very slow fade

Multiple Properties

<div class="motion-duration-100/opacity motion-duration-2000/rotate motion-opacity-in-0 motion-rotate-in-180">
  Fast fade, slow rotation
</div>
Fast fade, slow rotation

On this page

✨ Rombo for Chrome

Design animations visually in your browser.

Export directly to Rombo for Tailwind, CSS, or Framer Motion.

Install