-
Notifications
You must be signed in to change notification settings - Fork 0
/
glitchtest.html
87 lines (76 loc) · 1.36 KB
/
glitchtest.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Glitch Effect - Easy Tutorials</title>
<style>
*{
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
box-sizing: border-box;
}
body{
background: #222;
color: #fff;
}
.glitch{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 100px;
letter-spacing: 8px;
cursor: pointer;
}
.glitch::before, .glitch::after{
content: 'GLITCH';
display: block;
position: absolute;
top: 0px;
left: 0px;
}
.glitch:hover::before{
animation: glitch 0.3s linear 6;
color: #e91e63;
z-index: -2;
}
.glitch:hover::after{
animation: glitch 0.3s linear 6 reverse;
color: #2196f3;
z-index: -1;
}
@keyframes glitch{
0%{
top: 0;
left: 0;
}
20%{
top: -5px;
left: -5px;
}
40%{
top: 5px;
left: 5px;
}
60%{
top: -5px;
left: 5px;
}
80%{
top: 5px;
left: -5px;
}
100%{
top: 0;
left: 0;
}
}
</style>
</head>
<body>
<h1 class="glitch">GLITCH</h1>
</body>
</html>