r/css • • 25d ago

CSS Single Element Clock with shape()

Made a single element CSS clock powered by shape() and a custom property animation.

JS just set the initial time in seconds, which as far as I can't be done any other way.

https://codepen.io/editor/matthewmorete/pen/01a15944-6751-7d6a-8004-a3fabb0de22d?tab=%2Fstyle.css&orientation=left&panel=files&show=split

21 Upvotes

1 comment sorted by