-
-
Save tp/d40a392aa727ab765d8bfc24db9bf940 to your computer and use it in GitHub Desktop.
Load an SVG from an external page
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
<!doctype HTML> | |
<hmtl> | |
<head> | |
<meta charset="utf8"> | |
<style type="text/css"> | |
* { | |
-webkit-transform-origin-x: 0px; | |
-webkit-transform-origin-y: 0px; | |
-webkit-transform-origin-z: initial; | |
} | |
.icon { | |
width: 300px; | |
height: 300px; | |
fill: red; | |
} | |
</style> | |
</head> | |
<body> | |
<p>Hello World!</p> | |
<br> | |
<!-- code from CSS Tricks: http://css-tricks.com/svg-use-external-source/ --> | |
<!-- `<use>` shape defined in an EXTERNAL RESOURCE --> | |
<svg viewBox="0 0 18 18" class="icon"> | |
<use xlink:href="cafe-18.svg#svg4619"></use> | |
</svg> | |
</body> | |
</hmtl> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment