<div class="big" title="Error : 404">Error : 404</div>
<div>Developed by Tom Lahaye</div>
@import url('https://fonts.googleapis.com/css?family=Ubuntu:400');

.big {
  font-size: 76px;
}

.small {
  font-size: 36px;
}
body{ 
  display: flex;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: #131313;
  color: #fff;
  font-family: 'Ubuntu', monospace;
  letter-spacing: 10px;
}

div{
  animation: glitch 1s linear infinite;
}

@keyframes glitch{
  2%,64%{
    color: hsl(307, 100%, 50%);
    transform: translate(2px,0) skew(-45deg);
    color: hsl(125, 100%, 50%);
  }
  4%,60%{
    transform: translate(-2px,0) skew(12deg);
  }
  68%{
    color: hsl(125, 100%, 50%);
    transform: translate(-4px,0) skew(45deg);
    color: hsl(307, 100%, 50%);
  }
}

div:before,
div:after{
  content: attr(title);
  position: absolute;
  left: 0;
}

div:before{
  animation: glitchTop 1s linear infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

@keyframes glitchTop{
  2%,64%{
    transform: translate(2px,-2px);
  }
  4%,60%{
    transform: translate(-2px,2px);
  }
  62%{
    transform: translate(13px,-1px) skew(-13deg); 
  }
}

div:after{
  animation: glitchBotom 1.5s linear infinite;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitchBotom{
  2%,64%{
    transform: translate(-2px,0);
  }
  4%,60%{
    transform: translate(-2px,0);
  }
  62%{
    transform: translate(-22px,5px) skew(21deg); 
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.