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.
Test Timed Changes in a CSS Transition
Transition preview
Trigger the preview, then return to compare both states.
Generated stylesheet
Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.
#7D9065rgb(125, 144, 101)hsl(86.512 17.551% 48.039%)rgb(49.02% 56.471% 39.608%)0.4902, 0.5647, 0.3961, 1--color: #7D9065;Color names use standard CSS keywords, such as red or rebeccapurple.
CSS Transition Generator: how to use it
- Set a property, duration, delay and timing function in each row. Add rows to give properties separate clocks.
- Trigger the preview and return to the start state. Compare it with Preview without motion or choose a hover and keyboard focus trigger.
- 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.