Use CSS Animation to Change the Hover State of a Button 5

Tell us what’s happening:
its working correctly , i think my code is correct … i am unable to find the actual problem … please help me in finding the error in this code , the second test is not working

Your code so far

  button {
    border-radius: 5px;
    color: white;
    background-color: #0F5897;
    padding: 5px 10px 8px 10px;
  button:hover {
    animation-name: background-color;
    animation-duration: 500ms;

  @keyframes background-color {
     background-color : #4791d0;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36.

Link to the challenge:

remove the space between “background-color” and “:”

background-color : #4791d0

it should be

background-color: #4791d0;

thanks dude !!!
my bad :sweat_smile

1 Like