+ 1

Can someone help me

I wanned to make this header such as when you hover the links with the mouse they would gradually change color from white to green but the transition i tried to make it's not working. The links change color istantly and i don't understand why. https://code.sololearn.com/WcA1tjpGMvJZ/#

12th Mar 2020, 7:38 PM
Andrei I
Andrei I - avatar
3 Respuestas
+ 1
The solution for example as follows: nav ul li :hover{ color: rgb(92, 247, 131); transition: color 3s ease-in; }
12th Mar 2020, 10:00 PM
JaScript
JaScript - avatar
0
Thank you. Now it works but i still don't understand why it wasn't working before. Can you please explain what was i doing wrong?
13th Mar 2020, 6:45 AM
Andrei I
Andrei I - avatar
- 1
Set the transition property on the 'a' selector. the solution above me will work, but only on hovering. when the mouse get out from hovering, the initial color will be back instantly, not gradually.
12th Mar 2020, 10:06 PM
yochanan sheinberger
yochanan sheinberger - avatar