Re:CSS3 Animation Cheat Sheet
by halisaurus on Thursday September 05, 2013 @07:48AM
(#6333518)
Are we all writing small jQuery scripts right into the HTML in a script tag? This post suggests that practice. I can see it being the faster option for just a 1-3 line script, what's the tipping point when we move it to an independent (minified) .js file? Is that just a readability issue? And why do I need all of jQuery to add/remove a class from one element?
It seems there's a conflict here: Either there's little JS and no need for jQuery, or a lot of JS and no sense in dropping it in the HTML.
Re:CSS3 Animation Cheat Sheet
by stephenitis on Thursday September 05, 2013 @04:47AM
(#6332911)
Its a little surprising that bootstrap 2.0/3.0 haven't implemented a similar feature.
The actual
http://www.justinaguilar.com/animations/css/animations.css
sheet is more insightful in learning how to do your own animation effects.
I just wish the code snippets were side by side the animations as I scroll around and select the examples.
Re:CSS3 Animation Cheat Sheet
by harrisonpowers on Thursday September 05, 2013 @06:26AM
(#6333234)
Spent some time yesterday converting jQuery fadeIn/fadeOuts to CSS3 animations and ran into an issue.
Changing the display style (display:none; to display:block;) disables CSS animations and transitions. There are workarounds - setting height to 0 and switching to auto, then animating the opacity - or moving the element off the screen.
Took me a while to figure out why my simple animations weren't working... I had gotten used to display:none; not sure how I feel about height:0;
Re:CSS3 Animation Cheat Sheet
by CountHackulus on Thursday September 05, 2013 @02:16PM
(#6335836)
In iOS5, css transforms worked great, a bug was introduced in iOS6 crippling the performance, it still hasn't been fixed in iOS7. I'm not comparing to Android, I'm just saying that a huge mobile market is basically unavailable with this feature.
It seems there's a conflict here: Either there's little JS and no need for jQuery, or a lot of JS and no sense in dropping it in the HTML.
The actual http://www.justinaguilar.com/animations/css/animations.css sheet is more insightful in learning how to do your own animation effects. I just wish the code snippets were side by side the animations as I scroll around and select the examples.
Changing the display style (display:none; to display:block;) disables CSS animations and transitions. There are workarounds - setting height to 0 and switching to auto, then animating the opacity - or moving the element off the screen.
Took me a while to figure out why my simple animations weren't working... I had gotten used to display:none; not sure how I feel about height:0;
https://github.com/fijimunkii/CSS3.fadeIn.fadeOut.js