+ 3

Which is best for animation CSS or JS ?

which is the best language for animation CSS or JS?

30th Apr 2017, 8:32 PM
Anmol Singh Tuteja
Anmol Singh Tuteja - avatar
6 Answers
+ 16
JavaScript is more powerfull.
30th Apr 2017, 8:46 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 17
Well, at the end JavaScript and CSS working together is bether. A good example of this is the Anime.js project: https://github.com/juliangarnier/anime
30th Apr 2017, 9:24 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 5
Javascript is more powerfull, but CSS animation are lightweigth, neat and clean
30th Apr 2017, 8:48 PM
⏩▶Clau◀âȘ
⏩▶Clau◀âȘ - avatar
+ 4
Depends. If you're looking to make a browser game or something with a lot of moving parts then you should consider javascript with canvas. If you're just building a website or Web app then svg animations and css keyframes will be fine.
30th Apr 2017, 10:32 PM
Mike
Mike - avatar
+ 1
where can i learn js animation?
30th Apr 2017, 8:47 PM
Anmol Singh Tuteja
Anmol Singh Tuteja - avatar
+ 1
As Ulisses said, they work best together. The end result is cleaner, more legible, and more maintainable. For example, you can add a class name to a div using JavaScript when the user does something and that class could contain a keyframe. It creates a more interactive experience.
1st May 2017, 11:15 PM
Christian Bradley
Christian Bradley - avatar