News for hackers. Stuff that matters.
Re:An Introduction To CSS3 Keyframe Animations by atacrawl on Friday May 20, 2011 @05:54PM (#2569566)
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.
Re:An Introduction To CSS3 Keyframe Animations by duopixel on Friday May 20, 2011 @06:26PM (#2569653)
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).

Re:An Introduction To CSS3 Keyframe Animations by lukifer on Friday May 20, 2011 @06:50PM (#2569709)
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.

Re:An Introduction To CSS3 Keyframe Animations by jlind on Friday May 20, 2011 @06:05PM (#2569587)
Agreed. I noticed that the sidebar with css was animated with jQuery anyways. I still thought it was an interesting proof of concept though.
Re:An Introduction To CSS3 Keyframe Animations by username3 on Friday May 20, 2011 @05:11PM (#2569448)
Is it possible to animate the sun on an arcing path using keyframes?
Re:An Introduction To CSS3 Keyframe Animations by heyimfromreddit on Friday May 20, 2011 @05:39PM (#2569522)
This is the first time I've tried using CSS3 animations and I managed to do it: http://jsfiddle.net/cmCfP/
Re:An Introduction To CSS3 Keyframe Animations by duopixel on Friday May 20, 2011 @06:34PM (#2569672)
Nice! Here's a version with CSS transitions

http://jsfiddle.net/KJAh2/