What is your hint or solution suggestion?
From the example, i copied the keyframe section from the example:
@keyframes width {
100% {
width: 40px;
}
}
and renamed it from ‘width’ to ‘background-color’.
next I changed ‘width:40 px;’ to ‘background-color: #4791d0;’
this is how it should look now look.
<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>
Challenge: Use CSS Animation to Change the Hover State of a Button
Link to the challenge: