I dont know what im missing

Tell us what’s happening: I don’t know what I am missing I added the “animation-timing-function” to both ball1 and ball2 and I don’t know what else I need to do.

Your code so far


<style>

.balls {
  border-radius: 50%;
  background: linear-gradient(
    35deg,
    #ccffff,
    #ffcccc
  );
  position: fixed;
  width: 50px;
  height: 50px;
  margin-top: 50px;
  animation-name: bounce;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}
#ball1 {
  left:27%;
  animation-timing-function: linear;
  }
#ball2 {
  left:56%;
  animation-timing-function: ease-out;
  
  }

@keyframes bounce {
  0% {
    top: 0px;
  }
  100% {
    top: 249px;
  }
}

</style>

<div class="balls" id="ball1"></div>
<div class="balls" id="ball2"></div>

Your browser information:

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

Challenge: Change Animation Timing with Keywords

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/applied-visual-design/change-animation-timing-with-keywords

Your code seems to work for me. I am using Google Chrome. What browser are you using?

Here is a recent reply about browser support: Lesson is broken?

2 Likes

I am using edge. I will run it on chrome thank you so much.

Hey, I was having issues on chrome as well, firefox has been working much better for me. If your issue persists give that a try!

Good luck!

1 Like

awesome i will keep that in mind. thank you for the help!

1 Like

Same with me. It works.

It also wasn’t working for me using Edge and then when I switched to chrome it did.