You put the correct file path to the file (the “SVG sprite”) and reference an identifier, and it just works. The beauty of an external reference is that it leverages browser cache well.Īlso that it’s simple to work with. That that #icon-1 identifier likely references a symbol in that file, like… There are some things to know about this that we haven’t covered before. It’s an essential ingredient to an SVG icon system. SVG has a element which essentially means: go find the chunk of SVG that has this #identifier and kinda clone it and put it right here.
0 Comments
Leave a Reply. |