Clocks developed using CSS and HTML, without any JavaScript or any other scripting language*.
Many of these clocks were developed as part of an app I developed a few years back titled MultiClocks, but they used JavaScript to function. I removed the JavaScript and added CSS animations to make them work again.
The traditional analog clock, with 3 arms pointing to the hours, minutes, and seconds.
A set of concentric circles with hours, minutes, and seconds written in text, they rotate (see versions below) to let the current time visible in the center line.
There are two versions of this clock: one in which the rotation is continuous/progressive, and another in which the rotation is step by step (changes every second).
In this clock, the approximate time (it has an error of +/- 4 minutes) is displayed via text, highlighting the current time in a bright color while the rest of the letters are darker.
This was actually a really tricky clock to develop only with HTML and CSS. I used SASS/SCSS because it saved me writing thousands of lines of code (almost 6,000 compiled, but only 140 uncompiled!).
The clock shows a map of the world displaying an approximate sunlight status in each region. The user would need to know Geography in order to know where to look for on the map... also, there is no real notion of time, just of sunlight.
TODO: Update the clock so the shade is upside down during summer.
The clock shows a map of the world displaying an approximate time on each region. The user would need to know Geography in order to know where to look for time.
This clock is inaccurate because it doesn't take into account delimited time zones. It takes GMT as a starting point, and divides the map in equal parts.
You can see demos for these clocks on my CodePen:
- Analog clock
- Radial clock (progressive)
- Radial clock (step by step)
- Square Text clock
- Sunlight clock
- Timelines clock
* For demo purposes, the HTML files include a small JavaScript snippet with the purpose of setting the clock for the right time. This script is not necessary to make the clock work, and can be substituted for a small code on the server side.