4 ms·
ok, now I'm asking... why? what this technique offer that a simple animated svg (or event a crusty .gif) don't? If the problem is the load time of the external
by _ZeD_ 10y ago
ok, now I'm asking... why?
what this technique offer that a simple animated svg (or event a crusty .gif) don't? If the problem is the load time of the external asset you can still embed the image in the .css file directly...
- sametmax 10y agoIt's just fun.
- josephorjoe 10y agoI can think of a few advantages, the primary one being you do not need expertise in making graphic files to build this. And once it is set up, it can be tweaked really easily from within the text editor you are already using for the rest of the project rather than having to jump out into Photoshop/Illustrator or ask the designer for a new asset.
- wilz 10y agoYou can modify and finetune the look and timing of the animation in CSS code. While this is also possible with SVG animations, they tend to be not as widely supported as CSS animations and at least I need to google for information about this topic as SVG is not an everyday topic for me. Regarding GIF animations: they are larger in size and you first have to find and use tools to generate them. When avoiding the additional request: data URLs are ugly.