Learn-how-bezier-curves-work

Hi there,

As far as I know it should work but nothing…
My cubic bezier should be equivalence to linear…

Can any one help me with that ?

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: cubic-bezier(0,0,1,1);
  }
  #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 6.3; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0.

Link to the challenge:

cubic-bezier(0,0,1,1) its kinda linear.

Is any one writes his cubic bezier by him self or just using a ‘generator’?

When you understand how the control points work you can sort-of visualize the shape of a bezier curve, but it is a tad more challenging than using a tool such as this one.

Don’t know if you were looking for something like this, but hopefully it was of some tangential help.

animation-timing-function: cubic-bezier(0.25, 0.25, 0.75, 0.75);

#ball1 {
left: 27%;
animation-timing-function: cubic-bezier(.25, .25, .75, .75);
}

this is really cool… and the first time ive actually understood the curve im making and not just guessing. thank you man!