News for hackers. Stuff that matters.
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 kaonashi on Thursday September 05, 2013 @09:57AM (#6334185)
The js was just to add and remove the class; it was inline for documentation purposes.
Re:CSS3 Animation Cheat Sheet by yapjonathan on Thursday September 05, 2013 @06:02AM (#6333143)
H5BP put together a very comprehensive list. http://h5bp.github.io/Effeckt.css/dist/
Re:CSS3 Animation Cheat Sheet by vittore on Thursday September 05, 2013 @06:53AM (#6333329)
In fact I even thought it was unnamed fork of effeckt.
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 davidhariri on Thursday September 05, 2013 @05:16AM (#6333005)
dan eden made this exact thing ages ago: http://daneden.me/animate/
Re:CSS3 Animation Cheat Sheet by cliveowen on Thursday September 05, 2013 @05:39AM (#6333061)
This one is meant to teach you how to do it yourself.
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 harrisonpowers on Thursday September 05, 2013 @01:50PM (#6335656)
Created a small script to take care of this. Hopefully someone else finds it useful.

https://github.com/fijimunkii/CSS3.fadeIn.fadeOut.js

Re:CSS3 Animation Cheat Sheet by itry on Thursday September 05, 2013 @06:09AM (#6333165)
Somebody should give this guy a CSS3 Color Cheat Sheet. One entry would read "Grey Text on Grey Background: Non Readable".
Re:CSS3 Animation Cheat Sheet by bgnm2000 on Thursday September 05, 2013 @07:34AM (#6333465)
my thoughts exactly
Re:CSS3 Animation Cheat Sheet by CountHackulus on Thursday September 05, 2013 @10:06AM (#6334240)
Great, now all Apple has to do is fix their performance bug with CSS transforms on iOS and I can consider using these.
Re:CSS3 Animation Cheat Sheet by untog on Thursday September 05, 2013 @10:31AM (#6334414)
Apple? Apple has by far the best performance that I've seen when compared to Android and the like.
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.
Re:CSS3 Animation Cheat Sheet by EastSmith on Thursday September 05, 2013 @10:41AM (#6334487)
Cool. Anyone know a mobile safe list of these kind of CSS3 animations?
Re:CSS3 Animation Cheat Sheet by cliveowen on Thursday September 05, 2013 @05:39AM (#6333063)
Very useful, kudos!
Re:CSS3 Animation Cheat Sheet by czbond on Thursday September 05, 2013 @11:10AM (#6334631)
Absolutely useful, thanks.