<div class="grid"></div>
<div class="lines"></div>
<h1>
<span>RETRO</span>
<span>RETRO</span>
</h1>
<h2>Text Effect</h2>
@import url('https://fonts.googleapis.com/css2?family=Mr+Dafoe&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@900&display=swap');
body, html {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
}
body {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
background: radial-gradient(rgba(#7600bf, 0.5) 0%, transparent 70%), linear-gradient(#0b161e 40%, #202076 70%);
perspective: 700px;
font-size: clamp(10px, 2vw, 20px);
}
.lines {
$color: #59c1fe;
position: fixed;
width: 100vw;
height: 4em;
background: linear-gradient(rgba($color, 0.2) 20%, $color 40%, $color 60%, rgba($color, 0.2) 80%);
background-size: 1px 0.5em;
box-shadow: 0 0 1em rgba($color, 0.4);
transform: translateY(-1em);
left: 0;
}
h1 {
position: relative;
font-family: 'Exo';
font-size: 9em;
margin: 0;
transform: skew(-15deg);
letter-spacing: 0.03em;
&::after {
content: '';
position: absolute;
top: -0.1em;
right: 0.05em;
width: 0.4em;
height: 0.4em;
background:
radial-gradient(white 3%, rgba(white, 0.3) 15%, rgba(white, 0.05) 60%, transparent 80%),
radial-gradient(rgba(white, 0.2) 50%, transparent 60%) 50% 50% / 5% 100%,
radial-gradient(rgba(white, 0.2) 50%, transparent 60%) 50% 50% / 70% 5%;
background-repeat: no-repeat;
}
span:first-child {
display: block;
text-shadow: 0 0 0.1em #8ba2d0, 0 0 0.2em black, 0 0 5em #165ff3;
-webkit-text-stroke: 0.06em rgba(black, 0.5);
}
span:last-child {
position: absolute;
left: 0;
top: 0;
background-image: linear-gradient(#032d50 25%, #00a1ef 35%, white 50%, #20125f 50%, #8313e7 55%, #ff61af 75%);
-webkit-text-stroke: 0.01em #94a0b9;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
h2 {
font-family: 'Mr Dafoe';
margin: 0;
font-size: 5.5em;
margin-top: -0.6em;
color: white;
text-shadow: 0 0 0.05em #fff, 0 0 0.2em #fe05e1, 0 0 0.3em #fe05e1;
transform: rotate(-7deg);
}
.grid {
$main: #7d41e6;
$glow: rgba(#2e26ff, 0.4);
background:
linear-gradient(transparent 65%, $glow 75%, $main 80%, $glow 85%, transparent 95%),
linear-gradient(90deg, transparent 65%, $glow 75%, $main 80%, $glow 85%, transparent 95%);
background-size: 30px 30px;
width: 200vw;
height: 300vh;
position: absolute;
bottom: -120vh;
transform: rotateX(-100deg);
-webkit-mask-image: linear-gradient(rgba(0,0,0,1), rgba(0,0,0,0) 80%);
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.