-
-
Save maxw3st/2598294 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 { | |
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 width="6em" height="1.5em"> | |
<defs> | |
<pattern id="wood" patternUnits="userSpaceOnUse" width="400" height="400" > | |
<image xlink:href="http://subtlepatterns.com/patterns/purty_wood.png" 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":"","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment