Change the Hover State of a Button

Tell us what’s happening:

so i guess i the @keyframes rule should only have an entry at 100% but i do believe this was not shown or done before (if i recall) what is it that i should do so that i can know and remember… thanks in advance

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 background-color{
      color: #4791d0;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.

Link to the challenge:

Hi @Cbazil,

All the code you write is right, but, you should change color property in keyframes to background-color property, so, it will be like this:

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

Hope this will help you to solve example.

Ali Mosaad