-
Notifications
You must be signed in to change notification settings - Fork 0
/
hello.css
113 lines (104 loc) · 2.65 KB
/
hello.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
113
body{
background-color: black;
margin: 5rem 4rem;
text-align: center;
font-family: sans-serif;
}
h1, h2{
margin: 0;
padding: 0;
color: white;
display: inline-block;
font-size: 10rem;
text-shadow: 0 0 10px white, 0 0 20px white, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
}
h2{
font-size: 8 rem;
}
h1:nth-child(0n+0), h2:nth-child(5n+0){
animation-name: animate;
animation-delay: 0s;
animation-duration: 0s;
animation-timing-function: linear;
animation-direction: alternate-reverse;
animation-iteration-count: infinite;
}
h1:nth-child(0n+1), h2:nth-child(5n+1){
animation-name: animate;
animation-delay: 0.2s;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-direction: alternate-reverse;
animation-iteration-count: infinite;
}
h1:nth-child(0n+2), h2:nth-child(5n+2){
animation-name: animate;
animation-delay: 0.4s;
animation-duration: 1s;
animation-timing-function: linear;
animation-direction: alternate-reverse;
animation-iteration-count: infinite;
}
h1:nth-child(0n+3), h2:nth-child(5n+3){
animation-name: animate;
animation-delay: 0.6s;
animation-duration: 1.5s;
animation-timing-function: linear;
animation-direction: alternate-reverse;
animation-iteration-count: infinite;
}
h1:nth-child(0n+4), h2:nth-child(5n+4){
animation-name: animate;
animation-delay: 0.8s;
animation-duration: 2s;
animation-timing-function: linear;
animation-direction: alternate-reverse;
animation-iteration-count: infinite;
}
h1:nth-child(0n+5), h2:nth-child(5n+5){
animation-name: animate;
animation-delay: 1s;
animation-duration: 2.5s;
animation-timing-function: linear;
animation-direction: alternate-reverse;
animation-iteration-count: infinite;
}
@keyframes animate {
0%{
opacity: 1;
background-position: 0 0;
filter: hue-rotate(0deg);
}
10%{
background-position: 5px 0;
}
20%{
background-position: -5px 0;
}
30%{
background-position: 15px 0;
}
40%{
background-position: -5px 0;
}
50%{
background-position: -25px 0;
}
60%{
background-position: -50px 0;
}
70%{
background-position: 0px -20px;
}
80%{
background-position: -60px -20px;
}
81%{
background-position: 0 0;
}
100%{
opacity:1;
background-position: 0 0;
filter: hue-rotate(360deg);
}
}