Difference between revisions of "Team:Penn/Overview"
Line 43: | Line 43: | ||
h1.titulo COOL WAVES | h1.titulo COOL WAVES | ||
+ | <style type="text/javascript"> | ||
+ | // Only works on webkit based browsers :/ | ||
+ | // For all browser use https://github.com/TimPietrusky/background-clip-text-polyfill | ||
+ | var element = document.querySelector('.titulo'); | ||
+ | |||
+ | /* | ||
+ | * Call the polyfill | ||
+ | * | ||
+ | * patternID : the unique ID of the SVG pattern | ||
+ | * patternURL : the URL to the background-image | ||
+ | * class : the css-class applied to the SVG | ||
+ | */ | ||
+ | element.backgroundClipPolyfill({ | ||
+ | 'patternID' : 'mypattern', | ||
+ | 'patternURL' : 'http://i.imgur.com/LIx0y7a.jpg', | ||
+ | 'class' : 'titulo' | ||
+ | }); | ||
+ | </style> | ||
</html> | </html> |
Revision as of 02:07, 29 August 2015
h1.titulo COOL WAVES