News for hackers. Stuff that matters.
Re:Mario 3 recreated with CSS3 animations and media queries by slewis on Thursday November 01, 2012 @01:16PM (#4728581)
Hey dude. Awesome demo. Wanted to be a counter-voice to all the commenters here complaining about having to resize the window to make this work. You've got lots of upvotes so clearly people like your work. The only people commenting are the pessimists.

The resize thing is a cool hack. I wonder if anyone has ever made a game with window resizing as the control mechanism.

Finally, if you do you want to get rid of the resizing, maybe an easy way would be to simulate it by covering the un-animated part of the window with a curtain (Mario style: http://www.flickr.com/photos/shieldsokc/5388817583/).

Re:Mario 3 recreated with CSS3 animations and media queries by dragongraphics on Thursday November 01, 2012 @01:33PM (#4728673)
Thanks :) Think it's easy for some to forget it's a tech demo, so it isn't meant to be absolutely 'perfect', but really happy with the feedback so far.

Good idea re the curtain - it would be quite an easy port to make the animation work like that, so think I might do that at some point.

Think there are lots of possibilities around window resizing that haven't been explored yet - could make some really interesting effects...

Re:Mario 3 recreated with CSS3 animations and media queries by MartinCron on Thursday November 01, 2012 @02:59PM (#4729110)
I wonder if anyone has ever made a game with window resizing as the control mechanism.

Challenge accepted!

Re:Mario 3 recreated with CSS3 animations and media queries by jonny_eh on Thursday November 01, 2012 @01:31PM (#4728662)
Another way to maybe do it is to use the pseudo-selector :target. See here for an example: http://news.ycombinator.com/item?id=4712350