CSS Generators

Transition Generator

All tools

Assemble the transition shorthand in the right order without checking the docs again.

How it works

Four simple steps

1

Name the property

Type all or a specific property such as background-color.

2

Set the duration

Enter a time in s or ms, for example 0.2s or 150ms.

3

Add easing and delay

Use a keyword or cubic-bezier(), and an optional delay.

4

Copy the line

Copy the transition declaration or download transition.css.

Transition Generator

About Transition Generator

A button changes color on hover with a jarring snap. One line of transition fixes it, but you can never remember whether the delay comes before or after the easing, or how to animate only the background. Fill in four fields and copy the line.

The builder has four text fields: property (default all), duration (default 0.3s), easing (default ease) and delay (default 0s). Each one accepts any valid CSS, so you can type background-color, 150ms, ease-out or a full cubic-bezier() function. The output is a single transition declaration in the order the shorthand expects, updated on every keystroke and ready to copy or download as transition.css.

A tip from code review: avoid all in production styles when you can. It transitions every property that changes, including ones you never meant to animate, such as width during a resize. Name the property instead, and list several with commas, for example background-color 0.2s ease, transform 0.2s ease. Because the fields are free text, the tool does not validate typos; if the transition does nothing in the browser, check the property name first. Custom easing values come from the cubic-bezier curve tool, and for effects that play on load rather than on a state change use the keyframe animation generator.

The line is assembled in the page as you type.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

Mostly no, except for the two time values. The first time is always read as the duration and the second as the delay. The builder writes them in that order.

display is not animatable in most browsers, so the element switches instantly. Transition opacity and visibility instead, or use newer allow-discrete support where available.

No. This tool only writes the declaration. Paste it into your stylesheet or DevTools and trigger the hover or focus state to see it.

View more FAQs

Related tools

View all

Tailwind Class Sorter

Sort Tailwind classes and detect conflicting utilities with a winner explanation.

Open

Design System Diff Lab

Diff design tokens and inspect CSS @layer order and selector specificity locally.

Open

SVG Path Inspector

Parse SVG path commands, preview on canvas, round and minify coordinates.

Open

Flexbox Generator

Build flex layouts visually.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools