JSFiddle - React, Tailwind, and code Playground
Retro Text effect
by bitstarr
HTML
<script src="http://fonts.googleapis.com/css?family=Raleway:600,900"></script>
<h1>Cool text-effect with<br><span data-shadow-text="Text-Shadow">Text-Shadow</span><br> and CSS-Mask image</h1>
CSS
body { background: #9cb8b3; }
h1 {
font: 600 1.5em/1 'Raleway', sans-serif;
color: rgba(0,0,0,.5);
text-align: center;
text-transform: uppercase;
letter-spacing: .5em;
position: absolute;
top: 25%;
width: 100%;
}
span, span:after {
font-weight: 900;
color: #efedce;
white-space: nowrap;
display: inline-block;
position: relative;
letter-spacing: .1em;
padding: .2em 0 .25em 0;
}
span {
font-size: 4em;
z-index: 100;
text-shadow: .04em .04em 0 #9cb8b3;
margin: .2em 0;
}
span:after {
content: attr(data-shadow-text);
color: rgba(0,0,0,.35);
text-shadow: none;
position: absolute;
left: .0875em;
top: .0875em;
z-index: -2;
-webkit-mask-image: url(http://f.cl.ly/items/1t1C0W3y040g1J172r3h/mask.png);
}
span:before {
content: '';
display: block;
position: absolute;
top: -8px;
left: -8px;
bottom: -2px;
right: -2px;
z-index: -1;
background-image: linear-gradient(45deg, #9cb8b3 12.5%, rgba(156, 184, 179, 0) 12.5%, rgba(156, 184, 179, 0) 37.5%, #9cb8b3 37.5%, #9cb8b3 62.5%, rgba(156, 184, 179, 0) 62.5%, rgba(156, 184, 179, 0) 87.5%, #9cb8b3 87.5%);
background-size: 6px 6px;
}