Animation like javascript

Animation like javascript can be possible Via CSS. If yes then guide me how to do?

if you take a look at the curriculum there is a part on css animations, starting from here:
https://www.freecodecamp.org/learn/responsive-web-design/applied-visual-design/learn-how-the-css-keyframes-and-animation-properties-work

Along with the above-mentioned link, please go through the below one too:

I have tried this my issue resolved.