How to create Quadratic Bézier with css cubic-bezier function? [Solved] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to create Quadratic Bézier with css cubic-bezier function? [Solved]

I'm not getting identical output with cubic-bezier(x,y,1,1), cubic-bezier (0,0,x,y), cubic-bezier (x,y,x,y) in this code- https://code.sololearn.com/WY8zycOxEiRm/?ref=app Don't they refer to the same curve? Also, I wanted to create segment of this parabola - y = 10 - {(x-a)/b}^2 (provided the points (0,0) and (1,1) are on the curve). The tangents of the curve at (0,0) and (1,1) intersect at (.5000.., 19.49...). So that when the balls(in the code) move 10 times of x then get back to x when the keyframes are from translateY(0) to translateY (x) with the timing function bezier-curve(0,0, .5, 19.49). But moves a bit higher than expected.

14th Apr 2020, 5:26 AM
Mahmud Nabil
Mahmud Nabil - avatar
1 Answer
0
Well I's slightly wrong with the concept of bezier curves. Anyways this answers my question - https://wikipedia.org/wiki/File:Quadratic_to_cubic_Bezier_curve.svg
18th Apr 2020, 9:28 AM
Mahmud Nabil
Mahmud Nabil - avatar