+ 3

Which one is best & which one to use: CSS animation / JAVASCRIPT animation?

28th Apr 2020, 1:38 AM
Sketch
Sketch - avatar
3 Answers
+ 2
both are good for providing attractive animation,for selecting one language it depend on what you to do for example: -Use CSS animations for simpler "one-shot" transitions, like toggling UI element states. -Use JavaScript animations when you want to have advanced effects like bouncing, stop, pause, rewind, or slow down. -If you choose to animate with JavaScript, use the Web Animations API or a modern framework that you're comfortable with
1st May 2020, 5:19 AM
Ishan Shah
Ishan Shah - avatar
+ 4
Both are best it depends on your interest. I prefer CSS
28th Apr 2020, 2:04 AM
Ayush Kumar
Ayush Kumar - avatar
+ 1
Use javascript animation, it is better than css animation. CSS animation doesn't allows better functions while javascript do.
28th Apr 2020, 2:45 AM
Gone