However, last week, a link popped up in my Twitter timeline that linked to a set of icons that are animated as GIFs. And if you’re going to animate any of those, creating your animations by animating the SVG code is the sensible way to go. Generally speaking, the images listed above are usually perfect candidates for SVG. Not only should the image be a good candidate for SVG, but SVG should also be a good candidate for the image. If the image size is much less as a PNG, for example, then you should use PNG, and serve different versions/resolutions of that image using srcset, or, depending on what you’re working on and trying to achieve. Of course, if you have an image that is better suited for the raster format-such as a photograph or a very complex vector illustration (that would normally have a very big size as an SVG), then you should use a raster image format instead.
0 Comments
Leave a Reply. |