Hacker News new | past | comments | ask | show | jobs | submit login

Indeed, there are other technologies that can build a digital clock more easily, but I think the point was to further demonstrate the versatility of CSS. I've personally never before seen CSS do something like this. I also enjoyed how the author took the time to explain how div borders were used to create the numbers.



If that was new to you, then this should blow your mind (it certainly did mine 3 or 4 years ago). It uses roughly the same border trick to draw a 3d rotating polygon.

http://www.uselesspickles.com/triangles/demo.html


That's impressive! I had no idea borders were this versatile.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: