Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
An Introduction To CSS3 Keyframe Animations (smashingmagazine.com)
27 points by EricssonLabs on May 20, 2011 | hide | past | favorite | 7 comments


As much as I love CSS, I could never see myself using any of this technology because jQuery (and many other JS frameworks) can do this with less code, simpler syntax and more browser coverage.


See also: the Firmin plugin, which abstracts away CSS transitions with clean Javascript APIs: http://extralogical.net/projects/firmin/ (Alas, it does not yet do automatic jQuery fallback.)

Though I love jQuery.animate(), it just can't match the GPU-rendering speed on CSS3 transitions and animations. If you can afford the development time, it's absolutely worth it.


You'd need a bunch of callbacks to chain the animations in jQuery, plus the cost of including the library.

The Smashing Magazine article is not using the shorthand declarations for -webkit-animation, which would compact it much more.

Give it a spin, you will be pleasantly surprised, especially when it comes to tiggering the animation (with :hover).

You are right that browser coverage is a joke, but support is there in FF Aurora (who knows about IE10).


Agreed. I noticed that the sidebar with css was animated with jQuery anyways. I still thought it was an interesting proof of concept though.


Is it possible to animate the sun on an arcing path using keyframes?


This is the first time I've tried using CSS3 animations and I managed to do it: http://jsfiddle.net/cmCfP/


Nice! Here's a version with CSS transitions

http://jsfiddle.net/KJAh2/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: