How to get a smooth animation (css)? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to get a smooth animation (css)?

In this code I’m experimenting with, I have 2 different animations (keyframes..). One rotates the body by 5 deg, then -5 deg. The other one has a filter: hue-rotate(). I want both the animations to go smooth, it doesn’t matter if they are in the same speed, as long as they’re both smooth. https://code.sololearn.com/WTqg2ds04p4m/?ref=app

9th Feb 2020, 7:16 AM
Ginfio
Ginfio - avatar
3 Answers
+ 1
Calviղ , hue-rotate: when it is about blue, it kind of suddenly turns to pink_ish red - instead of smoothly.
9th Feb 2020, 7:22 AM
Ginfio
Ginfio - avatar
+ 1
The roll over of value deg causes sudden change, add alternate to animation.
9th Feb 2020, 7:25 AM
Calviղ
Calviղ - avatar
0
It's smooth.
9th Feb 2020, 7:20 AM
Calviղ
Calviղ - avatar