
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...
For further actions, you may consider blocking this person and/or reporting abuse
sick
Awesome, thank you ;-)
Thanks!
Holy CSS!
Thank you! This is awesome! However, there's a small issue causing the script to work incorrectly with fractional time zones. For example, when the timezone is set to +9.5, the clock displays the time half an hour earlier than it should.
To fix this, simply replace parseInt with** parseFloat** when retrieving the timezone value from the element attribute. This will ensure that fractional offsets are handled correctly.
This error exists even in the CDN.
Ah, didn't think about that — thanks for letting me know!
I've added this method, so it rounds the timezone to nearest quarter of an hour:
And since you're called StanTheMan70 — here's Stan The Man and me, 25 years ago ;-)
Nice, but you can just name the variable
--d
without the underscore, neater.That's to indicate the variable should be considerend "private".
next I want an overly complicated button made using only CSS. Now that's a keeper
🕖
This looks so good🌟Thanks for sharing!
Thanks!
Great work thanks.
Thanks!
So nice!
Thanks!
Wow! Very interesting! Clocks are hard! Thanks for sharing!
Thank you!
Noice, The clock is so smooth, thanks for sharing
Thank you!
COOL👍MARK❤
Thanks!
Good Job !
Thanks!
Absolutely amazing
Thanks!
Great, It seems awesome 🙌
Thanks!
This is timeless CSS at it's best
Thank you!
Awesome!!! Excellent!
Thank you!!
This is so cool, thanks for sharing.
Thanks!
good quilt
Very good!
Thanks!
Great article, thanks.
Always knew that trigonometry is cool ))
Yeah, it is!