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

Tell us what’s happening:

Your code so far


<style>
  button {
    border-radius: 5px;
    color: white;
    background-color: #0F5897;
    padding: 5px 10px 8px 10px;
  }
  
  button:hover {
    animation-name: background-color;
    animation-duration: 500ms;
  }
  
  @keyframe background-color {
    100% {
      background-color: #4791d0;
    }
  }
</style>
  
<button>Register</button>

Can you guys tell me what’s wrong with my code please ???
i followed the instructions and double check also watched the video too but when i tested it. it said im wrong.
Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/use-css-animation-to-change-the-hover-state-of-a-button

Hi, you are really close,
take a look at @keyframe (you missing one letter :))

good luck

1 Like

ahhh ty mate. haha im so blinded

You’re using the wrong key word, it’s keyframes (plural form), not LeviosA… I mean, not keyframe.

1 Like