Transition

noun

say it: “tran-ZISH-un” /trænˈzɪʃən/

A smooth change from one value to another, such as a color fading over a quarter of a second. In CSS, the transition property says which change, how long and at what speed.

What is a transition in CSS?

A transition makes a property change smoothly over time instead of jumping, like a button fading to a new color on hover.

.button { background: teal; transition: background 0.3s ease; }
.button:hover { background: darkcyan; }

In a sentence

  • “A short transition makes the button fade to dark green instead of snapping to it.”

Level: Journeyman · More CSS terms at this level

Updated