+ 2

Why is my animation not smooth?

I was tryna learn cubic-bezier function and this happened. Why's this happening? Also, can anyone explain how exactly cubic-bezier function works? https://code.sololearn.com/WT6NlLf4ZBD0/?ref=app

22nd Feb 2022, 1:30 PM
Rishi
Rishi - avatar
5 Respostas
+ 2
Try with this : animation:anim 4s cubic-bezier(.17,.67,.37,1.02) infinite; It start very fast until the curve is smached at the end, producing a very slow ending. Example: https://cubic-bezier.com/#.17,.67,.37,1.02
22nd Feb 2022, 1:58 PM
Geoffrey L
Geoffrey L - avatar
+ 3
Geoffrey L oh yeah thank you got it :)
22nd Feb 2022, 4:09 PM
Rishi
Rishi - avatar
22nd Feb 2022, 2:02 PM
Rishi
Rishi - avatar
+ 1
Have more dynamic examples here: https://greensock.com/docs/v3/Eases
22nd Feb 2022, 2:00 PM
Geoffrey L
Geoffrey L - avatar
+ 1
You missed a coma between .67 and .37
22nd Feb 2022, 2:15 PM
Geoffrey L
Geoffrey L - avatar