Can't able to identify the error

Tell us what’s happening:
Describe your issue in detail here.

  **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 background-color {
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/91.0.4472.101 Safari/537.36

Challenge: Use CSS Animation to Change the Hover State of a Button

Link to the challenge:

Hi @ShipraBardhan,

The issue you have is in the syntax of your keyframes.

Course example:

@keyframes width {
  100% {
    width: 40px;
  }
}

Your code:

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

Can you see your mistake?

Hey ,
oh Okay, Thanks

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.