<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link href='https://fonts.googleapis.com/css?family=Varela' rel='stylesheet' type='text/css'>
<div class="glitch" data-text="GLITCH">GLITCH</div>
body {
background: black;
font-family: 'Varela', sans-serif;
}
.glitch {
color: white;
font-size: 100px;
position: relative;
width: 400px;
margin: 0 auto;
}
@keyframes noise-anim {
0% {
clip: rect(36px, 9999px, 68px, 0);
}
5% {
clip: rect(7px, 9999px, 6px, 0);
}
10% {
clip: rect(90px, 9999px, 34px, 0);
}
15% {
clip: rect(97px, 9999px, 67px, 0);
}
20% {
clip: rect(59px, 9999px, 19px, 0);
}
25% {
clip: rect(40px, 9999px, 30px, 0);
}
30% {
clip: rect(8px, 9999px, 1px, 0);
}
35% {
clip: rect(30px, 9999px, 12px, 0);
}
40% {
clip: rect(30px, 9999px, 7px, 0);
}
45% {
clip: rect(25px, 9999px, 61px, 0);
}
50% {
clip: rect(9px, 9999px, 12px, 0);
}
55% {
clip: rect(47px, 9999px, 74px, 0);
}
60% {
clip: rect(30px, 9999px, 91px, 0);
}
65% {
clip: rect(96px, 9999px, 85px, 0);
}
70% {
clip: rect(67px, 9999px, 63px, 0);
}
75% {
clip: rect(63px, 9999px, 47px, 0);
}
80% {
clip: rect(32px, 9999px, 19px, 0);
}
85% {
clip: rect(94px, 9999px, 76px, 0);
}
90% {
clip: rect(61px, 9999px, 12px, 0);
}
95% {
clip: rect(95px, 9999px, 32px, 0);
}
100% {
clip: rect(27px, 9999px, 80px, 0);
}
}
.glitch:after {
content: attr(data-text);
position: absolute;
left: 2px;
text-shadow: -1px 0 red;
top: 0;
color: white;
background: black;
overflow: hidden;
clip: rect(0, 900px, 0, 0);
animation: noise-anim 2s infinite linear alternate-reverse;
}
@keyframes noise-anim-2 {
0% {
clip: rect(1px, 9999px, 17px, 0);
}
5% {
clip: rect(23px, 9999px, 78px, 0);
}
10% {
clip: rect(89px, 9999px, 8px, 0);
}
15% {
clip: rect(81px, 9999px, 1px, 0);
}
20% {
clip: rect(23px, 9999px, 2px, 0);
}
25% {
clip: rect(52px, 9999px, 15px, 0);
}
30% {
clip: rect(38px, 9999px, 69px, 0);
}
35% {
clip: rect(8px, 9999px, 93px, 0);
}
40% {
clip: rect(89px, 9999px, 32px, 0);
}
45% {
clip: rect(77px, 9999px, 12px, 0);
}
50% {
clip: rect(94px, 9999px, 44px, 0);
}
55% {
clip: rect(58px, 9999px, 26px, 0);
}
60% {
clip: rect(62px, 9999px, 12px, 0);
}
65% {
clip: rect(99px, 9999px, 62px, 0);
}
70% {
clip: rect(3px, 9999px, 98px, 0);
}
75% {
clip: rect(5px, 9999px, 10px, 0);
}
80% {
clip: rect(35px, 9999px, 63px, 0);
}
85% {
clip: rect(78px, 9999px, 87px, 0);
}
90% {
clip: rect(72px, 9999px, 16px, 0);
}
95% {
clip: rect(6px, 9999px, 55px, 0);
}
100% {
clip: rect(86px, 9999px, 82px, 0);
}
}
.glitch:before {
content: attr(data-text);
position: absolute;
left: -2px;
text-shadow: 1px 0 blue;
top: 0;
color: white;
background: black;
overflow: hidden;
clip: rect(0, 900px, 0, 0);
animation: noise-anim-2 3s infinite linear alternate-reverse;
}