Not to detract from the creativity here, but the id attribute specifies its element's unique identifier[1]. Strictly speaking, this should never happen:
"strictly speaking" is right. It's invalid but all major browsers will handle the code just fine. Browsers are pretty damn forgiving.
It's also an easy mistake to make. All someone has to do is create an element with an ID in a child template without checking to see if that ID is already used in a parent template.
This is nuts -- but sadly dancing Bender is not too practical. (Unless the dancing trend catches on and GitHub releases the dancing Octocat to production...)
For more practical CSS madness, I'd recommend Ana Tudor's creations[1]. She had a cool talk at CSSConf.eu about the math behind building some of her CSS creations.[2]
I've seen her work posted around before, and always found myself really impressed. Thanks for the link to that video, I think it may have sparked an interest in geometry for me.
And I disagree about the practicality of a dancing bender. It's a tech demo if nothing else. I can picture a future where things like this are much easier to accomplish in CSS and we move on from using traditional images.
For those of you who are bound to ask the point, this is pure hacking. You are given a technology and you produce a result, sometimes for the fun of it! Thanks for this! I learned a bit.
I love when people see the potential to use HTML structure as a makeshift DAG. Similarly, once the DOM got fully grokked in the mid-2000s, it was if the web changed overnight. From flat documents to a flexible graph. And to do this without JS? We're talking no actual imperative code here, just dead structure and presentation markup.
This is one of the first CSS animations I've seen that works flawlessly for me, at least on the iPhone. I also noticed the non-unique ID attrs as is noted below, but let's be real. With that amount of CSS to conceive of and write, would you really glance twice at the twenty lines of HTML you're using as a fly-by-night DAG? For a non-commercial passion project? The creator of this was in the ZONE!
The pure insanity makes me grin and long for the pre-teen days where there was time for this. All the ANSI art, the HyperCard stacks, the strange games made using dirt-cheap language implementations. Sigh, but a nice sigh. Also makes me damn grateful for open source and standards.
This is really neat. I'm really interested in seeing how all these new fancy CSS3/HTML5 features shape the evolution of casual online games. Back in the day it was either static images, like the Neopets sort of thing (which are still pretty common with young kids I think - Webkinz is a cash cow and that site looks straight out of my childhood), or slow awful Flash games that usually didn't have any data persistence. Even if this Bender example is kind of hacky as other comments are indicating, the possibilities still seem pretty limitless.
[+] [-] liamondrop|12 years ago|reply
[+] [-] benatkin|12 years ago|reply
It's also an easy mistake to make. All someone has to do is create an element with an ID in a child template without checking to see if that ID is already used in a parent template.
[+] [-] ajtaylor|12 years ago|reply
[+] [-] themodelplumber|12 years ago|reply
[+] [-] apaprocki|12 years ago|reply
For more practical CSS madness, I'd recommend Ana Tudor's creations[1]. She had a cool talk at CSSConf.eu about the math behind building some of her CSS creations.[2]
[1]: http://codepen.io/thebabydino/public/
[2]: http://www.youtube.com/watch?v=w9HeWBH_kvg
[+] [-] bilalq|12 years ago|reply
And I disagree about the practicality of a dancing bender. It's a tech demo if nothing else. I can picture a future where things like this are much easier to accomplish in CSS and we move on from using traditional images.
[+] [-] Kiro|12 years ago|reply
[+] [-] Tyrant505|12 years ago|reply
[+] [-] lele0108|12 years ago|reply
[+] [-] jroseattle|12 years ago|reply
Pure comment gold.
[+] [-] ntumlin|12 years ago|reply
[+] [-] padolsey|12 years ago|reply
[+] [-] Zecc|12 years ago|reply
Fail!
[+] [-] ars|12 years ago|reply
[+] [-] lubujackson|12 years ago|reply
Is there some tool they used to make this? Because my human brain can't imagine how this came to exist.
[+] [-] aegiso|12 years ago|reply
I don't see any magic here. Modern CSS3 lets you build arbitrary geometry with arbitrary animations if you're crazy enough.
What I do see here is an excellent grasp of Cartesian geometry and some serious dedication. Which I suppose is no less magical.
[+] [-] ciokan|12 years ago|reply
[+] [-] null_ptr|12 years ago|reply
[+] [-] Sami_Lehtinen|12 years ago|reply
[+] [-] shmerl|12 years ago|reply
Reminded me the undead break dance from the inXile's Bard's Tale: https://www.youtube.com/watch?v=sP_7nFldRtY
[+] [-] anigbrowl|12 years ago|reply
[+] [-] camkego|12 years ago|reply
It seems to bring into question the practicality of multi-browser support of these complex 'apps' utilizing fancy CSS and HTML5.
[+] [-] com2kid|12 years ago|reply
I am wondering if this works in anything aside from Webkit based browsers.
[+] [-] yiedyie|12 years ago|reply
[+] [-] DavidPlumpton|12 years ago|reply
[+] [-] Tyrant505|12 years ago|reply
[+] [-] digitailor|12 years ago|reply
This is one of the first CSS animations I've seen that works flawlessly for me, at least on the iPhone. I also noticed the non-unique ID attrs as is noted below, but let's be real. With that amount of CSS to conceive of and write, would you really glance twice at the twenty lines of HTML you're using as a fly-by-night DAG? For a non-commercial passion project? The creator of this was in the ZONE!
The pure insanity makes me grin and long for the pre-teen days where there was time for this. All the ANSI art, the HyperCard stacks, the strange games made using dirt-cheap language implementations. Sigh, but a nice sigh. Also makes me damn grateful for open source and standards.
[+] [-] arbutus|12 years ago|reply
[+] [-] sillysaurus2|12 years ago|reply
I'm not aware of any games that use CSS3 for the ingame graphics, though.
[+] [-] blt|12 years ago|reply
[+] [-] cli_shall|12 years ago|reply
Never used it.
[+] [-] sly010|12 years ago|reply
[+] [-] ck2|12 years ago|reply
Anyways, I hope ad people don't catch on to how CSS is a bit harder to block than JS.
[+] [-] larkinrichards|12 years ago|reply
Just in time for halloween.
[+] [-] BinaryBullet|12 years ago|reply
http://liveweave.com/bhu7HB
[+] [-] sown|12 years ago|reply
I've gotten into CSS3 and JS recently but I'm not sure how this works.
Can someone explain to this old C dog the principles of how it works, though? I thought this would require JS to work?
I apologize in advance for being out of touch. :(
[+] [-] dreen|12 years ago|reply
[+] [-] kaoD|12 years ago|reply
[+] [-] moreentropy|12 years ago|reply
Is anything known about the author or license of this work? Will Comedy Central likely object?
[+] [-] yngccc|12 years ago|reply
http://yow.eventer.com/yow-2012-1012/the-story-of-the-teapot...
[+] [-] ciriarte|12 years ago|reply
[+] [-] pouzy|12 years ago|reply
[+] [-] northband|12 years ago|reply