Rombo

Applying Modifiers

Learn how to apply modifiers to your animations

Modifiers allow you to customize various aspects of your animations, including duration, delay, timing function, and play state.

Available Modifiers

Basic Usage

Add modifier classes alongside your animation classes to customize their behavior:


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

Applying to Specific Properties

You can target specific properties using a slash (/) followed by the property name:


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

In this example, the delay only applies to the rotation animation, while the opacity animation starts immediately.

Combining Multiple Modifiers

You can stack multiple modifiers to achieve complex animation behaviors:


<div class="motion-preset-slide-right-lg motion-duration-2000 motion-delay-500 motion-ease-bounce">
  Complex animation
</div>
Complex animation

Play State Control

Use play state modifiers to control animation playback:

<div class="motion-preset-oscillate-lg motion-paused hover:motion-running">
  Hover to play
</div>
Hover to play

Arbitrary Values

Most modifiers support arbitrary values using square brackets:

<div class="motion-scale-in-50 motion-duration-[1500ms] motion-ease-[cubic-bezier(1,-0.4,0.35,0.95)]">
  Custom timing
</div>
Custom timing

On this page

✨ Rombo for Chrome

Design animations visually in your browser.

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

Install