.button {
background: teal;
transition: background 0.2s ease-in-out;
}
.button:hover {
background: darkslategray;
}CSS Transitions
Smoothly animates a property change over a given duration, instead of it happening instantly.
GoCareerGo Tutorials
Selectors, box model, Flexbox, Grid, animation and responsive design.
Smoothly animates a property change over a given duration, instead of it happening instantly.
.button {
background: teal;
transition: background 0.2s ease-in-out;
}
.button:hover {
background: darkslategray;
}