Applied Visual Design - Create Visual Direction by Fading an Element from Left to Right

Tell us what’s happening:
Describe your issue in detail here.
The problem is to go for 0.1 opacity at 50% for the ball to fade.The ball is fading properly but the code won’t pass.please help.
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% {
      left: 60%;

    }
50% {
opacity:0.1;

}
  }

</style>

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








Your mobile information:

SM-A736B - Android 13 - Android SDK 33

Challenge: Applied Visual Design - Create Visual Direction by Fading an Element from Left to Right

Link to the challenge:

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

You’ve defined 50% twice within your @keyframes rule. If you’re aiming to set the opacity to 0.1 at 50% completion of the animation, you only need to define it once.
Put it in one @keyframes rule.

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