Then you gotta use the transition property and set the yellow background as a state. It may be a native state with a pseudo-selector like :hover and :focus, or a custom state setting a class to the element with JavaScript:
a { background-color: red; transition: background-color 0.15s; }
6
u/arhythm Jan 19 '23
I really need to learn more css like this.