Earlier quoted context omitted.
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…
Unfortunately I'm not the OP. I only designed the unrelated demo in my comment (which does use alpha transparency btw to blend in with whatever background color/image one might use).
Show HN: Performance-focused pure CSS loading animations
11–16 of 16 posts
Re: Show HN: Performance-focused pure CSS loading animations
#12Re: Show HN: Performance-focused pure CSS loading animations
#13Earlier quoted context omitted.
And why not SVG?
I'm not sure, because I haven't tried it, but: assume the markup and scripts are locked down, and you're only offered CSS as a means to theme a site's look & feel – how then would the SVG markup get on the page? Such was the case for our customers' sites at the company where I made this: everyone got the same markup in their widget, and changing that (for example, to add some SVG elements) was a more involved release…
Re: Show HN: Performance-focused pure CSS loading animations
#14Earlier quoted context omitted.
I'm not sure, because I haven't tried it, but: assume the markup and scripts are locked down, and you're only offered CSS as a means to theme a site's look & feel – how then would the SVG markup get on the page? Such was the case for our customers' sites at the company where I made this: everyone got the same markup in their widget, and changing that (for example, to add some SVG elements) was a more involved release…
Not 100% sure, but if you inline an SVG in HTML, you should be able to style it using CSS the usual way.
Re: Show HN: Performance-focused pure CSS loading animations
#15Edit: Have since looked at a few more of the broken ones, and found another problem source being your use of quoted strings for the animation name in some places. That too is not valid according to the specs - they should be unquoted identifiers.