Color · Made a little simpler

CSS Transition Generator

Assign different durations, delays and easing curves to CSS properties. Preview a real state change, then copy or download the shorthand or individual declarations with optional reduced motion.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Transition preview

Trigger the preview, then return to compare both states.

Transition rows
Sample and export

Generated stylesheet

#7D9065rgb(125, 144, 101)

Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.

HEX#7D9065
RGBrgb(125, 144, 101)
HSLhsl(86.512 17.551% 48.039%)
RGB percentrgb(49.02% 56.471% 39.608%)
Normalized RGBA0.4902, 0.5647, 0.3961, 1
CSS variable--color: #7D9065;

Color names use standard CSS keywords, such as red or rebeccapurple.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

CSS Transition Generator: how to use it

  1. Set a property, duration, delay and timing function in each row. Add rows to give properties separate clocks.
  2. Trigger the preview and return to the start state. Compare it with Preview without motion or choose a hover and keyboard focus trigger.
  3. Choose shorthand or individual declarations, then copy or download the stylesheet.

Limits and notes

Use up to 10 property rows, with durations from 0 to 5,000 milliseconds and delays from −5,000 to 5,000 milliseconds. The preview and exported example change the selected properties.

How your privacy works →

CSS Transition Generator: common questions

Why does one property move before another?

Each row has its own duration, easing and delay. A positive delay holds the start value before that property begins to change.

What does a negative transition delay do?

A negative value starts the transition partway through its duration. Use it to test a property that is already in progress when the state changes.

How does the reduced-motion option change the export?

Respect prefers-reduced-motion adds a media query that disables the transition when the browser reports the preference. The control still reaches its end state.

Guides