DEV Community

Cover image for Clocks and Watches in CSS

Clocks and Watches in CSS

Mads Stoumann on February 25, 2025

A couple of years ago, when CSS trigonometry functions became baseline, I wrote an article about them. One of the examples I did, was a CSS-only an...
Collapse
 
crosschainer profile image
crosschainer

sick

Collapse
 
artydev profile image
artydev • Edited

Awesome, thank you ;-)

Collapse
 
madsstoumann profile image
Mads Stoumann

Thanks!

Collapse
 
deathcrafter profile image
Shaktijeet Sahoo

Holy CSS!

Collapse
 
plutonium239 profile image
plutonium239

Nice, but you can just name the variable --d without the underscore, neater.

Collapse
 
madsstoumann profile image
Mads Stoumann

That's to indicate the variable should be considerend "private".

Collapse
 
mileswk profile image
MilesWK

Wow! Very interesting! Clocks are hard! Thanks for sharing!

Collapse
 
madsstoumann profile image
Mads Stoumann

Thank you!

Collapse
 
muhayminbinmehmood profile image
Muhaymin Bin Mehmood

Great, It seems awesome 🙌

Collapse
 
madsstoumann profile image
Mads Stoumann

Thanks!

Collapse
 
bigol profile image
José Santos Silva

Great work thanks.

Collapse
 
madsstoumann profile image
Mads Stoumann

Thanks!

Collapse
 
michael_phillips_356cb1ff profile image
Michael Phillips

So nice!

Collapse
 
madsstoumann profile image
Mads Stoumann

Thanks!

Collapse
 
madhurima_rawat profile image
Madhurima Rawat

This looks so good🌟Thanks for sharing!

Collapse
 
madsstoumann profile image
Mads Stoumann

Thanks!

Collapse
 
samirhembrom profile image
SAMIR HEMBROM

Absolutely amazing

Collapse
 
madsstoumann profile image
Mads Stoumann

Thanks!

Collapse
 
mahdijazini profile image
Mahdi Jazini

Good Job !

Collapse
 
madsstoumann profile image
Mads Stoumann

Thanks!

Collapse
 
zoujia profile image
zoujia

COOL👍MARK❤

Collapse
 
madsstoumann profile image
Mads Stoumann

Thanks!

Collapse
 
googlieyes8 profile image
GoogliEyes8

Noice, The clock is so smooth, thanks for sharing

Collapse
 
madsstoumann profile image
Mads Stoumann

Thank you!

Collapse
 
keith_murimi profile image
Keith Murimi

This is timeless CSS at it's best

Collapse
 
madsstoumann profile image
Mads Stoumann

Thank you!

Collapse
 
ykosinets profile image
Yuriy K.

Great article, thanks.
Always knew that trigonometry is cool ))

Collapse
 
madsstoumann profile image
Mads Stoumann

Yeah, it is!

Collapse
 
vilce profile image
Ștefan Vîlce

Awesome!!! Excellent!

Collapse
 
madsstoumann profile image
Mads Stoumann

Thank you!!

Collapse
 
upgrow profile image
UpGrow

Very good!

Collapse
 
madsstoumann profile image
Mads Stoumann

Thanks!

Collapse
 
stephensamra profile image
Stephen Samra

This is so cool, thanks for sharing.