Skip to content
ToolsOnDuty - free online tools

Search tools

Loading tool search...

CSS & Design

CSS Transition Generator

Build a CSS transition with a live hover preview and copy the CSS.

Free browser toolRuns in your browserNo sign-up
Hover

Hover the box to see the transition in action.

.element {
  transition: all 0.3s ease;
}
.element:hover {
  transform: scale(1.15) rotate(6deg);
  background: #EC4899;
}

About the CSS Transition Generator

The CSS transition property animates changes smoothly, like a colour or transform on hover.

This generator lets you set the property, duration, timing function and delay, preview it on a hover box, and copy the CSS.

It runs in your browser.

Key features

  • Property, duration, timing and delay
  • Live hover preview
  • Copy the transition CSS
  • Runs in your browser

How to use

  1. 1Choose the property, duration, timing and delay.
  2. 2Hover the preview box.
  3. 3Copy the CSS.
  4. 4Start with all, transform or background to see a change in this preview. Selecting opacity, color, width or height will not create a new state for that property; add the changed value in your own :hover or class rule.
  5. 5Duration controls how long a change takes; delay controls how long it waits before starting. Move the pointer off the box as well to inspect the return transition.
  6. 6Test the exported CSS in your project: its hover scale is 1.15, while the on-page preview uses a 1.25 scale. The preview and copied snippet are not pixel-identical.

Examples

Smooth hover
Output: transition: all 0.3s ease;

A short duration with an ease curve makes hover changes feel smooth.

Frequently asked questions

What can I transition?
Any animatable CSS property, such as transform, opacity, colour and background. Choose 'all' to transition every changed property.
What does the timing function do?
It controls the speed curve of the transition, for example ease-out starts fast and slows down at the end.
Why is my transition not working?
Transitions animate between two states, so you need a change (often on :hover or a class) for the effect to show.

Open a related tool to prepare your files or refine the finished result.