Stefany93 Posted November 7, 2012 Share Posted November 7, 2012 (edited) 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 Edited November 7, 2012 by Stefany93 Quote 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. Quote 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 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? Quote 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. Quote 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 Exactly) I just like shortcuts for some words like jQuery. Haha me too. Thank you very much for the help, buddy. Quote 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. 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. Quote 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). Quote 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 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. Quote 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 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. 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. Quote 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 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. Quote 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 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 Quote Link to comment https://forums.phpfreaks.com/topic/270390-js-animations-obsolete/#findComment-1392504 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.