Please i need help with how to Use CSS Animation to Change the Hover State of a Button

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;
  }
  @keyframes {
   100% {background-color:#4791d0;}
  }
  
  
</style>
  
<button>Register</button>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 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

instead of that first line @keyframes { use this instead:

@keyframes background-color {

@keyframes background-color {
   100% {background-color:#4791d0;}
  }

thanks guys got it now

pls mark one of the answers above as the solution to your request for help.

I having the same problem but thank you for solving

I was thinking of this but not applying anyway thanks.