Please tell me what was wrong with it?

Tell us what’s happening:

Please tell me what was wrong with it?

Your code so far


<style>

  #ball {
    width: 70px;
    height: 70px;
    margin: 50px auto;
    position: fixed;
    left: 20%;
    border-radius: 50%;
    background: linear-gradient(
      35deg,
      #ccffff,
      #ffcccc
    );
    
    animation-name: fade;
    animation-duration: 3s;
  }

  @keyframes fade {
    50% {
      right: 50%;
    opacity:0.1;
    }
  }

</style>

<div id="ball"></div>

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/create-visual-direction-by-fading-an-element-from-left-to-right/

Why you have changed the property from left: 60%; to right: 50% ?

You only have to update the opacity at 50% @keyframe

1 Like

thank you…:slightly_smiling_face: