Skip to content

alvaromontoro/CSS-Clocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSS Clocks

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 Clocks

Analog Clock

The traditional analog clock, with 3 arms pointing to the hours, minutes, and seconds.

Analog Clock on Imgur

Radial Clock

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).

Radial Clock on Imgur

Square Text Clock

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!).

Square Text Clock on Imgur

Sunlight Clock

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.

Sunlight Clock on Imgur

Timelines Clock

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.

Timelines clock on Imgur

Demos

You can see demos for these clocks on my CodePen:




* 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.

About

Clocks developed using CSS and HTML, without any JavaScript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published