How to get a smooth animation (css)? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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