Rombo

Delay

Add a delay before animations start

Basic Usage

Control when animations start using the motion-delay-{value} utility:

<div class="motion-preset-fade motion-delay-500">Delayed fade in</div>
Delayed fade in

Default Value

The default delay for all animations is 0ms if no delay modifier is specified.

Available Values

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

ClassValue
motion-delay-00s
motion-delay-7575ms
motion-delay-100100ms
motion-delay-150150ms
motion-delay-200200ms
motion-delay-300300ms
motion-delay-500500ms
motion-delay-700700ms
motion-delay-10001000ms
motion-delay-15001500ms
motion-delay-20002000ms
motion-delay0ms
motion-delay-[2s]Arbitrary value

Property-Specific Delay

Apply delay to specific properties using a slash /:

<div class="motion-delay-500/rotate motion-rotate-in-180 motion-opacity-in-0">
  Delayed rotation, immediate opacity
</div>
Delayed rotation, immediate opacity

Examples

Staggered Animation

<div class="motion-preset-fade motion-delay-0">First item</div>
<div class="motion-preset-fade motion-delay-[200ms]">Second item</div>
<div class="motion-preset-fade motion-delay-[400ms]">Third item</div>
First item
Second item
Third item

Multiple Properties

<div class="motion-delay-0/opacity motion-delay-500/rotate motion-opacity-in-0 motion-rotate-in-180">
  Immediate fade, delayed rotation
</div>
Immediate fade, delayed rotation

Custom Delay Value

<div class="motion-preset-fade motion-delay-[1500ms]">Long delay</div>
Long delay

On this page

✨ Rombo for Chrome

Design animations visually in your browser.

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

Install