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; }
159
u/The_Egg_came_first Jan 18 '23
Source: https://semicolon.dev/tutorial/css/justify-content-examples
Oh my, that's how they made the bouncy animation:
Anyways, here's my quick fix: https://i.imgur.com/PhzeOKq.gif