← All text tools

CSS Transition Generator

Write CSS transition rules for one or several properties with duration, easing, delay and stagger, previewed on hover with a matching hover rule.

  • Free
  • No sign-up
  • Works on any device

About CSS Transition Generator

Describe a hover effect and get the CSS that makes it smooth. List the properties to animate, such as background-color and transform, or use all, then set the duration, delay and easing. A stagger value adds extra delay to each following property so the changes arrive one after another. Easing offers the keyword curves, a Material standard curve, an overshoot curve, steps and a custom cubic-bezier. The generated rule includes a matching :hover and :focus-visible state, a long-hand version of the same timing, and optionally a prefers-reduced-motion rule. The preview button uses exactly this CSS.

How to use CSS Transition Generator

  1. Type the CSS properties to animate, separated by commas, and set the duration and delay in milliseconds.
  2. Choose the easing curve, or enter your own cubic-bezier values, and add a stagger if you want a sequence.
  3. Hover over the preview, then copy the CSS rule or the long-hand properties.

Why use this tool?

Also known as

Frequently asked questions

Why does my transition not run on width: auto?

A browser cannot animate between auto and a number. Give the element a fixed starting size, or animate max-height or transform instead, because transitions need two computable values.

Which properties are cheapest to animate?

Transform and opacity, because browsers can handle them without recalculating the layout of the page. Animating width, height or margin is more expensive and can stutter.

What does the second time value in a transition mean?

In the shorthand the first time is the duration and the second is the delay. A transition of 300ms ease 100ms waits a tenth of a second and then runs for 300 milliseconds.

Is CSS Transition Generator free?

Yes. CSS Transition Generator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put CSS Transition Generator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools