Yea, CSS animations are insanely CPU heavy. CodePen has to kill them after 5 seconds to keep the site responsive.
Wristwatch in only HTML/CSS
11–20 of 37 posts
AFAIK a CSS3 3D transform of 0,0,0 with preserve 3d should push the work to the GPU.
Re: Wristwatch in only HTML/CSS
#12Shouldn't lines 217-221 have 12*3600 = 43200s instead of 86400? Because now it's a 24 hours watch. Fixed: http://codepen.io/anon/full/nieIh
Re: Wristwatch in only HTML/CSS
#13ummm, anyone else notice the time is wrong ... :)
Re: Wristwatch in only HTML/CSS
#14ummm, anyone else notice the time is wrong ... :)
Depends when you view it
Re: Wristwatch in only HTML/CSS
#15Shouldn't lines 217-221 have 12*3600 = 43200s instead of 86400? Because now it's a 24 hours watch. Fixed: http://codepen.io/anon/full/nieIh
Oops! Made the change. :P
Re: Wristwatch in only HTML/CSS
#16Here's a zero image version: http://codepen.io/anon/pen/rEfKk Using a CSS texture from http://lea.verou.me/css3patterns/
I'm going to take this as a pull request and adjust my pen. How would you like to be credited? (name/link/anything else)
Re: Wristwatch in only HTML/CSS
#17Re: Wristwatch in only HTML/CSS
#18Re: Wristwatch in only HTML/CSS
#19Replace line 58 with a base64 encoding of the image to make it pure HTML/CSS!
I removed the image completely now courtesy of another commenter. Anyhow, wouldn't base64 be cheating? ;)
Re: Wristwatch in only HTML/CSS
#20ummm, anyone else notice the time is wrong ... :)
[deleted]