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

  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;}

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:

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.

This is not required. It is optional.

I having the same problem but thank you for solving

I was thinking of this but not applying anyway thanks.