I have a product configurator on my site. The user can write a word on clothes, and text appears on the product image.
I want this text to look like embroidery. So I put a text shadow, the color of the text changes depending on the color of the product, but now I want to put a βfilterβ over the color.
Limitation: I just have access to CSS.
here is the fiddle I made:
#text { font-size:90px; text-align:center; font-family:'petit_formal_script'; -webkit-font-smoothing:antialiased; text-shadow: 2px 2px 2px black; color:lightblue; } #text:after { content:''; position:absolute; left:0; top:0; right:0; bottom:0; background-image:url('http://hdwbin.com/wp-content/uploads/2014/11/red-background.jpg'); -webkit-background-clip:text; -moz-background-clip:text; -webkit-text-fill-color:transparent; }
http://jsfiddle.net/u2to713t/
Thanks in advance.
source share