Last active
March 7, 2020 05:11
-
-
Save heytulsiprasad/0e2ece77cb8f5d437e4e440450ce5174 to your computer and use it in GitHub Desktop.
how i add svg's to my website
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Let all the boilerplate here --> | |
<svg class="my-svg-class"> | |
<use xlink:href="img/sprite.svg#icon-whatever"></use> | |
</svg> | |
<!-- I bought the svg from IconMoon.io then made all the code inside sprite.svg | |
and targeted the icon name followed by # --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment