Good afternoon please i need help

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: #4791d0 100%;
animation-name: background-color;
}

</style>

<button>Register</button>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0

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

Link to the challenge:

Hi

The instructions for this challenge show the following CSS @keyframes example for an animation with animation-name width:

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

Try to use the same format as that example for your background-color @keyframes statement.

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