Bezier Curve please help me how I can understand the concept

Tell us what’s happening:
I some how passed the challange but I could not understand the concept behind. Please Help how/ where can I find more references.

Your code so far


<style>
  .balls{
    border-radius: 50%;
    position: fixed;
    width: 50px;
    height: 50px;
    margin-top: 50px;
    animation-name: bounce;
    animation-duration: 2s;
    animation-iteration-count: infinite;
  }
  #red {
    background: red;
    left: 27%;
    animation-timing-function: cubic-bezier(0, 0, 0.58, 1);
  }
  #blue {
    background: blue;
    left: 56%;
    animation-timing-function: ease-out;
  }
  @keyframes bounce {
    0% {
      top: 0px;
    }
    100% {
      top: 249px;
    }
  }
</style>
<div class="balls" id= "red"></div>
<div class="balls" id= "blue"></div>

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/use-a-bezier-curve-to-move-a-graphic

1 Like

A bezier curve is a way to make a curve based on parameters. Some curves are simple, like circles, ovals, parabolae, etc… Bezier curves allow a much greater range of curves.
Here are resources that might help:
https://developer.mozilla.org/en-US/docs/Web/CSS/single-transition-timing-function
https://www.w3schools.com/cssref/func_cubic-bezier.asp
Here is a site that is very cool.
http://cubic-bezier.com/#0,.84,1,-0.02
Hope this helps.

2 Likes

Wow. thanks bro. Am I already loving this forum? LOL. Thanks a Million.

Glad to hear that i could help.
All the best for your future FCC challenges.