Wristwatch in only HTML/CSS
codepen.io
Wristwatch in only HTML/CSS
1–10 of 37 posts
Re: Wristwatch in only HTML/CSS
#2Cool thing!
Re: Wristwatch in only HTML/CSS
#3I love it how the HTML is 30 lines and the CSS is like 300 or so. It's an awesome watch.
Keyframes are a beautiful thing in CSS but boy oh boy I wish jQuery implemented them to reduce CSS size. It's becomming insane to have so many keyframes with 0%, 40%, 80%, 100% and so on.
Re: Wristwatch in only HTML/CSS
#4Very cool! Though the title isn't quite right - there definitely are images in the source, so it's not actually 'only HTML/CSS'
Re: Wristwatch in only HTML/CSS
#5Very cool! Though the title isn't quite right - there definitely are images in the source, so it's not actually 'only HTML/CSS'
There's only one image for the band's texture. The rest is CSS.
Re: Wristwatch in only HTML/CSS
#6Very cool! Though the title isn't quite right - there definitely are images in the source, so it's not actually 'only HTML/CSS'
Only one (wristband texture) and removing it still produces a pretty good result: http://codepen.io/anon/pen/LmEkn
Re: Wristwatch in only HTML/CSS
#7Very cool, but I am still amazed by how CSS animations are killing modern desktop CPU. I guess this is because my Chrome browser is not using GPU acceleration for CSS?
If I duplicate 10 times the watch, my CPU hits 100%.
Re: Wristwatch in only HTML/CSS
#8Replace line 58 with a base64 encoding of the image to make it pure HTML/CSS!
Re: Wristwatch in only HTML/CSS
#9Here's a zero image version: http://codepen.io/anon/pen/rEfKk
Using a CSS texture from http://lea.verou.me/css3patterns/
Re: Wristwatch in only HTML/CSS
#10Yea, CSS animations are insanely CPU heavy. CodePen has to kill them after 5 seconds to keep the site responsive.