Boneyard Tools

CSS Transition Generator

Compose a CSS transition declaration without memorizing the shorthand order. Add the properties to animate, set the duration, timing function and delay, then copy the rule.

How to generate a CSS transition

  1. Add one or more properties to transition, such as opacity or transform.
  2. Set the duration, timing function and optional delay.
  3. Copy the transition shorthand into your stylesheet.

Examples

Single property

opacity, 300ms, ease, 0ms
transition: opacity 300ms ease 0ms;

Two properties

opacity and transform, 300ms, ease, 0ms
transition: opacity 300ms ease 0ms, transform 300ms ease 0ms;

Frequently asked questions

Why is each property a separate segment?

The transition shorthand lets you list several comma separated segments, one per property. Writing each property explicitly is clearer than relying on the all keyword and avoids surprises.

Can I use a custom easing curve?

Yes. Enter a cubic-bezier(...) value in the timing field and it is passed straight into the output, so you can paste a curve from a cubic-bezier editor.

Should I transition the all keyword?

You can, but naming specific properties is usually faster because the browser does not have to watch every property for changes. This tool supports both.

What is the difference between duration and delay?

Duration is how long the change takes once it starts, while delay is how long the browser waits before starting. Both are set in milliseconds here.

Is anything sent to a server?

No. The transition string is built entirely in your browser and your settings are never uploaded.

Related tools