Created
May 29, 2015 10:09
-
-
Save aspirisen/245fdefca1957308b915 to your computer and use it in GitHub Desktop.
Text masking — The SVG way
This file contains hidden or 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
/** | |
* Text masking — The SVG way | |
*/ | |
svg { | |
width: 6em; height: 1.5em; | |
font: 900 500%/1.2 'Arial Black', sans-serif; | |
} | |
text { fill: url(#wood); } |
This file contains hidden or 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
<svg> | |
<defs> | |
<pattern id="wood" patternUnits="userSpaceOnUse" width="400" height="400" > | |
<image xlink:href="/Content/images/trainings/background-8.jpg" width="400" height="400" /> | |
</pattern> | |
</defs> | |
<text y="1.2em">SVG rocks!</text> | |
</svg> |
This file contains hidden or 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
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment