Show HN: Performance-focused pure CSS loading animations
connoratherton.com
Show HN: Performance-focused pure CSS loading animations
1–10 of 16 posts
Re: Show HN: Performance-focused pure CSS loading animations
#2A pair of red cherries if you can make pac-man chomp though!
Re: Show HN: Performance-focused pure CSS loading animations
#3Re: Show HN: Performance-focused pure CSS loading animations
#4Re: Show HN: Performance-focused pure CSS loading animations
#5These are pretty, however the demo page causes my Firefox to spin up to over 100% CPU utilization (obviously with hardware rending enabled). Why not just use a gif?
- smoother than GIFs
- GIFs don't have full alpha transparency
- much easier to customize and adapt to different themes/sites/etc.
Re: Show HN: Performance-focused pure CSS loading animations
#6These are pretty, however the demo page causes my Firefox to spin up to over 100% CPU utilization (obviously with hardware rending enabled). Why not just use a gif?
I've made this before [1], here are at least a few reasons: - smoother than GIFs - GIFs don't have full alpha transparency - much easier to customize and adapt to different themes/sites/etc. [1] http://brianbeck.com/spinner/
Re: Show HN: Performance-focused pure CSS loading animations
#7Re: Show HN: Performance-focused pure CSS loading animations
#8Earlier quoted context omitted.
I've made this before [1], here are at least a few reasons: - smoother than GIFs - GIFs don't have full alpha transparency - much easier to customize and adapt to different themes/sites/etc. [1] http://brianbeck.com/spinner/
And why not SVG?
Re: Show HN: Performance-focused pure CSS loading animations
#9These are pretty, however the demo page causes my Firefox to spin up to over 100% CPU utilization (obviously with hardware rending enabled). Why not just use a gif?
I've made this before [1], here are at least a few reasons: - smoother than GIFs - GIFs don't have full alpha transparency - much easier to customize and adapt to different themes/sites/etc. [1] http://brianbeck.com/spinner/
- plays nicer on lower end hardware (I actually don't buy that CSS is smoother than GIF. I think it's 50/50 depending on how the GIF was designed (eg # frames, delay between frames, frame overlay method, etc), the hardware the GIF / CSS is rendered on, the browser running the CSS, etc.
- GIF works uniformly on all platforms (bar console-based browsers obviously hehe)
- and to expand on your second point, it doesn't seem like you're using alpha transparency on half your examples anyway.
Anyhow, it wasn't my intention to be negative. There's some stylish work there and it shows you've gone to a lot of effort. I particularly like the Pac-Man example. Unfortunately though (and to reiterate an early point) sadly quite a few examples failed to animate. Below is my full user agent string, and a map of the examples that worked and failed, in case it helps you with future developments:
Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0
A A X X
X X A X
X X X X
X A A
A X X X
X X A A
X A A
A == Animated
X == not animated
== empty spot (failed animation?)Re: Show HN: Performance-focused pure CSS loading animations
#10Earlier quoted context omitted.
I've made this before [1], here are at least a few reasons: - smoother than GIFs - GIFs don't have full alpha transparency - much easier to customize and adapt to different themes/sites/etc. [1] http://brianbeck.com/spinner/
I think you could make similar arguments against the use of CSS. eg: - plays nicer on lower end hardware (I actually don't buy that CSS is smoother than GIF. I think it's 50/50 depending on how the GIF was designed (eg # frames, delay between frames, frame overlay method, etc), the hardware the GIF / CSS is rendered on, the browser running the CSS, etc. - GIF works uniformly on all platforms (bar console-based browse…