r/shittyprogramming • u/zachrip • May 27 '22
I heard that css animations can be hardware accelerated so I built an ultra performant digital clock with one!
https://2eg1y1.csb.app/
148
Upvotes
r/shittyprogramming • u/zachrip • May 27 '22
78
u/zachrip May 27 '22
If it's slow it's probably your internet, it's only 5MB of css.
53
u/Lasdary May 27 '22
Mm dunno about that performance dude, i don't see your seconds moving faster than in my other clocks
37
u/CharlesStross May 27 '22
It's beautiful. I think this is the "loop unrolling" I've heard about. It's like cruise control for speed.
15
u/[deleted] May 27 '22
actually unusable in Firefox
13
u/[deleted] May 27 '22
This is actually quite funny.
3
u/TheZipCreator May 27 '22
I can't get it to load at all lmao
2
u/Linkd May 27 '22
Atrocious.