Stopwatch in CSS
paullaros.github.io
paullaros.github.io
1. http://thejavascripthomework.wordpress.com/2012/10/13/15-pur...
Sorry about the nitpick; this really is a cool implementation :-)
I've had CSS animations go out of sync before in Safari, so I presume this wouldn't be a very accurate timer in the long run...
Aside from that, great work :)
Then again what do I expect?
Works fine in Chrome and Firefox.
(What, doesn't everyone do the 'see how fast you can stop it' test to every stopwatch ever put into their hands?
Edit: I'm not asking what it does, but how.
Also, does it really not work on the phone?
Edit: For the record it works and looks fine on my android phone, better than Chrome on my desktop in my opinion.
It'd be cool if I could read the time via JS
parseInt(getComputedStyle($('#seconds'), ':after').top)/-76
(see https://gist.github.com/alexlouden/7481780 for full)
I'm not saying these tech explorations are bad, they just need to have a big fat disclaimer "don't try this in prod" and preferably a reference implementation of how it would be done "properly".
Any implementation could be torn to shreds.
Because that's how the evolutionary, competitive nature of technology works. Nothing is "right" or "wrong", to use the scarequotes so in fashion, but is from a perspective and position. If things needed disclaimers around here -- as if we're all idiots, or worse jaded cynics -- then I think it would be a bad day for HN.
But of course, houndres of insane trick-focused css gurus churning out millions of crazy tech demos... Surely someone will find out some novel, more useful technique that we conservative programmers will begin to use for making the boring shit we do less burdensome. So I'm all for it really, despite my initial negative tone.
If everyone is worried that the tech is too scary or unstable or "wrong" TM, then we will never push the web forward into new territory. Remember when all form submissions forced a page refresh? If people were too afraid of front-end validation and AJAX calls then this would still be the reality.