Stefany93 Posted November 7, 2012 Share Posted November 7, 2012 Hi there, I was turning the pages of a JS book the other day and I stumbled upon JS animations. I am wondering, with the invention of CSS3, does it make using scripted animations deprecated since it is way faster to use CSS instead, or CSS still can't do what JS can? Thank you. Best Regards Stefany Link to comment https://forums.phpfreaks.com/topic/270390-js-animations-obsolete/ Share on other sites More sharing options...
Volter9 Posted November 7, 2012 Share Posted November 7, 2012 There's in CSS3 you can find transformations for elements but the problem is that you can't to control them. There's advice: better use ready JQ or JQ UI plugins/JS solutions. Link to comment https://forums.phpfreaks.com/topic/270390-js-animations-obsolete/#findComment-1390707 Share on other sites More sharing options...
Stefany93 Posted November 7, 2012 Author Share Posted November 7, 2012 On 11/7/2012 at 3:59 AM, Volter9 said: There's in CSS3 you can find transformations for elements but the problem is that you can't to control them. There's advice: better use ready JQ or JQ UI plugins/JS solutions. Just to be on the safe side, JQ means jQuery, right? Link to comment https://forums.phpfreaks.com/topic/270390-js-animations-obsolete/#findComment-1390719 Share on other sites More sharing options...
Volter9 Posted November 7, 2012 Share Posted November 7, 2012 Exactly) I just like shortcuts for some words like jQuery. Link to comment https://forums.phpfreaks.com/topic/270390-js-animations-obsolete/#findComment-1390812 Share on other sites More sharing options...
Stefany93 Posted November 7, 2012 Author Share Posted November 7, 2012 On 11/7/2012 at 1:42 PM, Volter9 said: Exactly) I just like shortcuts for some words like jQuery. Haha me too. Thank you very much for the help, buddy. Link to comment https://forums.phpfreaks.com/topic/270390-js-animations-obsolete/#findComment-1390841 Share on other sites More sharing options...
Adam Posted November 9, 2012 Share Posted November 9, 2012 As mentioned CSS3 gives you transformations, which are (with a few caveats) hardware accelerated. That means they'll out perform any JS-based animation. So yeah, in the future, JS animations will become obsolete. Right now though it's the same old story; not enough browsers support them to drop the legacy way completely. Quote the problem is that you can't to control them. What do you mean you can't control them? It's perfectly possible to control them. Link to comment https://forums.phpfreaks.com/topic/270390-js-animations-obsolete/#findComment-1391319 Share on other sites More sharing options...
haku Posted November 11, 2012 Share Posted November 11, 2012 Definitely not enough browser support. We are still at least 5 years away, if not 10 (thanks IE). Link to comment https://forums.phpfreaks.com/topic/270390-js-animations-obsolete/#findComment-1391645 Share on other sites More sharing options...
Stefany93 Posted November 11, 2012 Author Share Posted November 11, 2012 On 11/9/2012 at 4:27 PM, Adam said: As mentioned CSS3 gives you transformations, which are (with a few caveats) hardware accelerated. That means they'll out perform any JS-based animation. So yeah, in the future, JS animations will become obsolete. Right now though it's the same old story; not enough browsers support them to drop the legacy way completely. What do you mean you can't control them? It's perfectly possible to control them. Right, so for now it is better to make animations with JS than with CSS since most of the browsers won't support it while JS has been supported for years. I got it. Recently I read that you no longer need to enclose your JS code with HTML comments for browser comparability, every browser support JS now which is awesome. Link to comment https://forums.phpfreaks.com/topic/270390-js-animations-obsolete/#findComment-1391718 Share on other sites More sharing options...
Adam Posted November 11, 2012 Share Posted November 11, 2012 Quote Right, so for now it is better to make animations with JS than with CSS since most of the browsers won't support it while JS has been supported for years.I got it. Nope. It's better to use CSS where possible, and fall back to Javascript when not. Assuming you're willing to implement it twice that is. Quote Recently I read that you no longer need to enclose your JS code with HTML comments for browser comparability, every browser support JS now which is awesome. I haven't worried about putting comments in for a long time now. Link to comment https://forums.phpfreaks.com/topic/270390-js-animations-obsolete/#findComment-1391737 Share on other sites More sharing options...
Stefany93 Posted November 11, 2012 Author Share Posted November 11, 2012 On 11/11/2012 at 7:26 PM, Adam said: Nope. It's better to use CSS where possible, and fall back to Javascript when not. Assuming you're willing to implement it twice that is. I haven't worried about putting comments in for a long time now. Right, thank you very much. So use CSS when possible and when not then JS. Link to comment https://forums.phpfreaks.com/topic/270390-js-animations-obsolete/#findComment-1391740 Share on other sites More sharing options...
Andy-H Posted November 15, 2012 Share Posted November 15, 2012 On 11/7/2012 at 3:59 AM, Volter9 said: There's in CSS3 you can find transformations for elements but the problem is that you can't to control them. http://www.optimum7.com/css3-man/animation.html Link to comment https://forums.phpfreaks.com/topic/270390-js-animations-obsolete/#findComment-1392504 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.