-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
113 lines (103 loc) · 2.73 KB
/
style.css
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300&display=swap');
*{
margin: 0;
padding: 0;
}
body{
background-color: black;
display: flex;
justify-content: center;
align-items: center;
/* position: ; */
overflow: hidden;
}
#text{
color: white;
/* -webkit-text-stroke: 1px white; */
font-family: 'Kanit', sans-serif;
font-size: 13vw;
/* position: relative ; */
/* top: 40%; */
text-align: center;
text-transform: capitalize;
user-select: none;
text-shadow:
0.05rem 0rem 0 rgba(255, 0, 0, 0.45),
-0.25rem -0.10rem 0 rgba(0, 255, 0, 0.45),
0.25rem 0.05rem 0 rgba(0, 0, 255, 0.55);
z-index: 98;
animation: glitch-effect 500ms infinite ;
}
#text span{
position: absolute;
top: 40%;
left: 0%;
right: 0%;
}
#text span:first-child{
animation: glitch-effect 250ms infinite ;
clip-path: polygon(0 1%, 100% 0%, 100% 59%, 0 40%);
transform: translate(-0.2rem, -0.10rem);
opacity: 0.8;
z-index: 99;
}
#text span:last-child{
animation: glitch-effect 750ms infinite ;
clip-path: polygon(0 63%, 100% 45%, 98% 100%, 0 100%);
transform: translate(0.2rem, 0.04rem);
opacity: 0.8;
z-index: 99;
animation: slide-effect1 0.5s infinite;
}
@keyframes slide-effect1 {
from{
transform: translate(-0.2rem, -0.10rem);
}
to{
transform: translate(0.2rem, 0.10rem);
}
}
@keyframes glitch-effect {
0%{
text-shadow:
0.15rem 0.10rem 0 rgba(255, 0, 0, 0.55),
-0.35rem -0.20rem 0 rgba(0, 255, 0, 0.55),
0.45rem 0.15rem 0 rgba(0, 0, 255, 0.55);
}
14%{
text-shadow:
0.13rem 0.1rem 0 rgba(255, 0, 0, 0.55),
-0.35rem -0.20rem 0 rgba(0, 255, 0, 0.55),
0.35rem 0.15rem 0 rgba(0, 0, 255, 0.55);
}
15%{
text-shadow:
-0.35rem -0.3rem 0 rgba(255, 0, 0, 0.55),
-0.35rem -0.20rem 0 rgba(0, 255, 0, 0.55),
0.35rem 0.15rem 0 rgba(0, 0, 255, 0.55);
}
49%{
text-shadow:
-0.125rem 0.1rem 0 rgba(255, 0, 0, 0.55),
-0.35rem -0.20rem 0 rgba(0, 255, 0, 0.55),
0.35rem 0.15rem 0 rgba(0, 0, 255, 0.55);
}
50%{
text-shadow:
0.15rem -0.125rem 0 rgba(255, 0, 0, 0.55),
0.15rem -0.15rem 0 rgba(0, 255, 0, 0.55),
0.1rem -0.15rem 0 rgba(0, 0, 255, 0.55);
}
99%{
text-shadow:
0.20rem -0.125rem 0 rgba(255, 0, 0, 0.55),
0.15rem -0.1rem 0 rgba(0, 255, 0, 0.55),
0.1rem -0.15rem 0 rgba(0, 0, 255, 0.55);
}
100%{
text-shadow:
-0.35rem 0.1rem 0 rgba(255, 0, 0, 0.55),
-0.35rem -0.35rem 0 rgba(0, 255, 0, 0.55),
-0.35rem -0.15rem 0 rgba(0, 0, 255, 0.55);
}
}