span the
span deepend
View Compiled
$background: black;
$foreground: white;
@import 'bourbon';
@mixin gitchText($offset, $text) {
content: $text;
position: absolute;
left: $offset;
top: $offset;
clip: rect(0, 900px, 0, 0);
background-color: $background;
color: $foreground;
animation: glitch 3s infinite alternate-reverse;
animation-delay: 4s;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
background-color: $background;
color: $foreground;
display: flex;
justify-content: center;
align-items: center;
font-family: 'Medula One', sans-serif;
font-size: 3em;
@include user-select(none);
}
span:first-child {
margin-right: 20px;
}
span:last-child {
color: $background;
background-color: $background;
animation: fadeWhite 4s forwards;
animation-delay: 2s;
position: relative;
&:after {
@include gitchText(2px, 'deepend');
}
&:before {
@include gitchText(-2px, 'deepend');
}
}
@keyframes fadeWhite {
100% { color: $foreground; }
}
@keyframes glitch {
$steps: 20;
@for $i from 0 through $steps{
#{percentage($i * (1 / $steps))}{
clip: rect(random(100)+px, 9999px, random(100)+px, 0);
}
}
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.