Skip to content
ClockCrest

Analog clock widget

A clock with hands for your site, set to any city. Every dial below is the live widget.

Live demo

Paste this where the widget should appear. It is the first design shown above; open it in the studio to change anything.

Ten dials, all drawn in code

Classic numerals, a minimalist face, black and gold, Roman numerals, a wooden rim, a Scandinavian dial, a transparent face for coloured backgrounds, an industrial gauge, a Swiss-inspired design and a learning clock that labels hours and minutes. Each one is vector artwork drawn by the widget itself, so it stays sharp at any size and loads no image.

The second hand sweeps smoothly on most dials and ticks once a second on the Roman, wood, industrial and learning clocks. Visitors who ask their device for reduced motion always get the ticking version.

Reading the right time

Set the widget to a city or an IANA time zone and it converts the visitor’s device clock to that place, including daylight saving time. In 12-hour mode the dial adds a small AM/PM marker; the line under the dial can show the date, the weekday, the zone abbreviation and the UTC offset.

Questions

Can I change the colours of the hands and the dial?

Yes. The studio has three colours — background, text and hands, and accent (the second hand and markers) — plus corner radius, border and shadow. Wood and metal finishes are shaded from the accent colour.

Does it work on a dark page?

Each dial has a light and a dark palette and can follow the visitor’s device. The transparent design has no face at all and sits directly on your page background.

More widgets