Analog clock

A working clock with a raised bezel, a recessed dial and hands that float above it and cast shadows. It tilts with your pointer.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

AnalogClock3D props

PropTypeDefaultDescription
sizenumber240Diameter in px.
utcOffsetnumberHours from UTC. Leave out to use the viewer's local time.
labelstringShort text shown on the dial and before the digital time.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks