Live data from Hacker News

Impressive html5/css3 clock; no Flash.

aprilzero.com

51–60 of 89 posts

Re: Impressive html5/css3 clock; no Flash.

#52

Built an analog CSS clock of my own without the use of any pre-rendered images ( http://attasi.com/experiments/analog-clock/ ). Surprisingly, keeping time with CSS is far more accurate than with JS. The animation is also waaaay smoother.

Except your version doesn't work on Firefox because I lack "webkit". You may as well have written it in Flash, or VBScript.

Re: Impressive html5/css3 clock; no Flash.

#53

It's cool. But let's admit it wouldn't be impressive if it were written in Flash...because Flash makes it relatively trivial to write something like this. So is it only impressive because it doesn't use Flash? And if so, what does that say about how wise a decision it is to start trying to replicate complex animation in Javascript, CSS3 and Canvas, just to keep Steve Jobs happy? Arguably, Jobs chose to eliminate Flas…

I have to agree. Would anyone be impressed if I did this in ObjC / CoreAnimation? It would be simple enough.

Posts like this remind me of the old "year of the Linux desktop" crowd: People demonstrating how Linux can (often poorly) do the baseline simple things that other operating systems have been doing for years or decades.

Meanwhile, those other desktop operating systems were leapfrogging ahead.

Re: Impressive html5/css3 clock; no Flash.

#54
post #52

Built an analog CSS clock of my own without the use of any pre-rendered images ( http://attasi.com/experiments/analog-clock/ ). Surprisingly, keeping time with CSS is far more accurate than with JS. The animation is also waaaay smoother.

Except your version doesn't work on Firefox because I lack "webkit". You may as well have written it in Flash, or VBScript.

I know :/

It's written only for webkit because I don't have the time to cross-browser check experiments. Can't wait until we don't need browser prefixes.

Re: Impressive html5/css3 clock; no Flash.

#55
post #38
post #27

Earlier quoted context omitted.

this can be greatly improved (losslessly) using http://punypng.com / http://www.smushit.com/ysmush.it/ / downloadable PNG recompressing software. I tried it on several files on this site and some decreased in size by more than half.

is that better than pngcrush? http://pmt.sourceforge.net/pngcrush/

I've always had good results with pngout

Re: Impressive html5/css3 clock; no Flash.

#56

It's cool. But let's admit it wouldn't be impressive if it were written in Flash...because Flash makes it relatively trivial to write something like this. So is it only impressive because it doesn't use Flash? And if so, what does that say about how wise a decision it is to start trying to replicate complex animation in Javascript, CSS3 and Canvas, just to keep Steve Jobs happy? Arguably, Jobs chose to eliminate Flas…

Good point.

Off topic: Do people really write games for iOS fully in Objective-C? Why not just stick to C++ for everything except the graphics (which would use the regular C OpenGLES API) and the bare minimum of Obj-C to interface with iOS (main game loop, etc)? You get a better language (IMO) and much easier portability.

Re: Impressive html5/css3 clock; no Flash.

#57
post #53

It's cool. But let's admit it wouldn't be impressive if it were written in Flash...because Flash makes it relatively trivial to write something like this. So is it only impressive because it doesn't use Flash? And if so, what does that say about how wise a decision it is to start trying to replicate complex animation in Javascript, CSS3 and Canvas, just to keep Steve Jobs happy? Arguably, Jobs chose to eliminate Flas…

I have to agree. Would anyone be impressed if I did this in ObjC / CoreAnimation? It would be simple enough. Posts like this remind me of the old "year of the Linux desktop" crowd: People demonstrating how Linux can (often poorly) do the baseline simple things that other operating systems have been doing for years or decades. Meanwhile, those other desktop operating systems were leapfrogging ahead.

Yeah, the only difference being that every company besides Adobe is choosing this as the new web standard -- instead of doing what they should do, which is writing browsers compatible with ECMA-4/5 standards, and making either AS3 or JS2 built in with a genuine screen graph so animations don't have to be tied to this absurd 1994-era DOM for the next decade or longer. Short of that, they should allow any and all plugins necessary to run what users want to run, and stop their campaign of demonizing Flash. I realize Apple's made millions off breakout games that people downloaded because they were blocked from playing the free versions in Safari, and I don't blame them for being Machiavellian about it, but I also don't see a reason to feed the beast by pretending everything's hunky-dory with the ramshackle decaying non-cross-platform crap they've left developers to work with in the webkit/HTML5 stack.

Re: Impressive html5/css3 clock; no Flash.

#59
post #53

It's cool. But let's admit it wouldn't be impressive if it were written in Flash...because Flash makes it relatively trivial to write something like this. So is it only impressive because it doesn't use Flash? And if so, what does that say about how wise a decision it is to start trying to replicate complex animation in Javascript, CSS3 and Canvas, just to keep Steve Jobs happy? Arguably, Jobs chose to eliminate Flas…

I have to agree. Would anyone be impressed if I did this in ObjC / CoreAnimation? It would be simple enough. Posts like this remind me of the old "year of the Linux desktop" crowd: People demonstrating how Linux can (often poorly) do the baseline simple things that other operating systems have been doing for years or decades. Meanwhile, those other desktop operating systems were leapfrogging ahead.

Linux is a kernel, not an operating system [trolling]

Re: Impressive html5/css3 clock; no Flash.

#60
post #53

It's cool. But let's admit it wouldn't be impressive if it were written in Flash...because Flash makes it relatively trivial to write something like this. So is it only impressive because it doesn't use Flash? And if so, what does that say about how wise a decision it is to start trying to replicate complex animation in Javascript, CSS3 and Canvas, just to keep Steve Jobs happy? Arguably, Jobs chose to eliminate Flas…

I have to agree. Would anyone be impressed if I did this in ObjC / CoreAnimation? It would be simple enough. Posts like this remind me of the old "year of the Linux desktop" crowd: People demonstrating how Linux can (often poorly) do the baseline simple things that other operating systems have been doing for years or decades. Meanwhile, those other desktop operating systems were leapfrogging ahead.

>Meanwhile, those other desktop operating systems were leapfrogging ahead.

I think this is quite fitting for how Flash is developing out of the spotlight now as well. I think that the Flash exodus - if it will mean less designers doing ridiculously processor intensive banners - ultimately is beneficial for the future of the technology itself.

Post reply on HN