<div class="wrapper">
<h1 data-heading="Vintage">Vintage</h1>
</div>
$red: #f3576c;
$purple: #040106;
$blue: #130b52;
$bg: #8094ac;
html,
body {
height: 100%;
}
body {
background-color: $bg;
font-family: 'Oswald', sans-serif;
}
.wrapper {
width: 100%;
margin: 0 auto;
height: 100%;
background-color: $bg;
background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/dotty5.jpg');
background-blend-mode: multiply;
background-repeat: repeat;
}
h1 {
font-size: 20vw;
top: 50%;
left: 50%;
margin: 0;
transform: translate(-50%, -50%) scale(.8, 1);
position: absolute;
font-weight: 900;
font-family: 'Reem Kufi', sans-serif;
color: $bg;
text-transform: uppercase;
width: 100%;
text-align: center;
mix-blend-mode: darken;
text-shadow: -1px 0 0 $purple, 0 -1px 0 $purple, -2px -1px 0 $purple, -1px -2px 0 $purple, -3px -2px 0 $purple, -2px -3px 0 $purple, -4px -3px 0 $purple, -3px -4px 0 $purple, -5px -4px 0 $purple, -4px -5px 0 $purple, -6px -5px 0 $purple, -5px -6px 0 $purple, -7px -6px 0 $purple;
&:before {
content: attr(data-heading);
position: absolute;
left: 0;
top: 0;
z-index: 3;
overflow: hidden;
text-align: center;
width: 100%;
text-shadow: -1px -1px 0 $purple, 1px -1px 0 $purple, -1px 1px 0 $purple, 1px 1px 0 $purple;
}
&:after {
content: attr(data-heading);
position: absolute;
left: 0;
top: 0;
z-index: 3;
overflow: hidden;
transform: translate(.3vw, -.3vw);
text-align: center;
width: 100%;
color: #00356b;
text-shadow: none;
mix-blend-mode: darken;
}
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.