News for hackers. Stuff that matters.
Re:Mario 3 recreated with CSS3 animations and media queries by colanderman on Thursday November 01, 2012 @11:18AM (#4727943)
Maybe this is a dumb question, but why not use SVG? It's scriptable and supported on modern browsers.
Re:Mario 3 recreated with CSS3 animations and media queries by dragongraphics on Thursday November 01, 2012 @11:31AM (#4728028)
Not a dumb question - only reason was because I wanted an excuse to play around with css animations and see how powerful they are in their current state.

SVG would probably be much more robust as a solution (as would canvas have been) - I think the demo shows more than anything that CSS3 animations need slightly more reliable support across modern browsers before they are a viable choice for doing some really nice things with them.

Re:Mario 3 recreated with CSS3 animations and media queries by smickie on Thursday November 01, 2012 @11:37AM (#4728051)
I might be able to answer this. Animating SVG is tricky, groups is a particularly issues because each element inside a group has to be animated as opposed to just animating the parent group tag (which causes a lot of issues with rotations in particular, you have to break out the trigonometry in javascript).
Re:Mario 3 recreated with CSS3 animations and media queries by jarek-foksa on Thursday November 01, 2012 @11:51AM (#4728122)
I disagree, <g> element can be animated with JavaScript as easily as e.g. <div>. You just change the value of transform attribute. Rotations can be handled easily once you understand how matrixes work.