Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
131 lines (124 loc) · 3.15 KB
/
Copy pathindex.html
File metadata and controls
131 lines (124 loc) · 3.15 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<style type="text/css">
:root {
--color-background: #31037d;
--axis-x: 1px;
--axis-y: 1rem;
--delay: 10;
--color-black: #000;
--color-white: #fff;
--color-orange: #d49c3d;
--color-red: #d14b3d;
--color-violet: #cf52eb;
--color-blue: #44a3f7;
--color-green: #5acb3c;
--color-yellow: #debf40;
--color-foreground: var(--color-white);
--font-name: Righteous;
}
html,
body {
font-size: 24px;
}
body {
background-color: var(--color-background);
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-name);
height: 100vh;
}
.c-rainbow {
counter-reset: rainbow;
position: relative;
display: block;
list-style: none;
padding: 0;
margin: 0;
}
.c-rainbow__layer {
--text-color: var(--color-foreground);
counter-increment: rainbow;
font-size: 3rem;
color: var(--text-color);
text-shadow: -1px -1px 0 var(--color-black), 1px -1px 0 var(--color-black), -1px 1px 0 var(--color-black), 1px 1px 0 var(--color-black), 4px 4px 0 rgba(0, 0, 0, 0.2);
animation: rainbow 1.5s ease-in-out infinite;
}
.c-rainbow__layer:nth-child(1) {
animation-delay: calc(1 / var(--delay) * 1s);
left: calc(var(--axis-x) * 1);
z-index: -10;
}
.c-rainbow__layer:nth-child(2) {
animation-delay: calc(2 / var(--delay) * 1s);
left: calc(var(--axis-x) * 2);
z-index: -20;
}
.c-rainbow__layer:nth-child(3) {
animation-delay: calc(3 / var(--delay) * 1s);
left: calc(var(--axis-x) * 3);
z-index: -30;
}
.c-rainbow__layer:nth-child(4) {
animation-delay: calc(4 / var(--delay) * 1s);
left: calc(var(--axis-x) * 4);
z-index: -40;
}
.c-rainbow__layer:nth-child(5) {
animation-delay: calc(5 / var(--delay) * 1s);
left: calc(var(--axis-x) * 5);
z-index: -50;
}
.c-rainbow__layer:nth-child(6) {
animation-delay: calc(6 / var(--delay) * 1s);
left: calc(var(--axis-x) * 6);
z-index: -60;
}
.c-rainbow__layer:nth-child(7) {
animation-delay: calc(7 / var(--delay) * 1s);
left: calc(var(--axis-x) * 7);
z-index: -70;
}
.c-rainbow__layer:not(:first-child) {
position: absolute;
top: 0;
}
.c-rainbow__layer--white {
--text-color: var(--color-white);
}
.c-rainbow__layer--orange {
--text-color: var(--color-orange);
}
.c-rainbow__layer--red {
--text-color: var(--color-red);
}
.c-rainbow__layer--violet {
--text-color: var(--color-violet);
}
.c-rainbow__layer--blue {
--text-color: var(--color-blue);
}
.c-rainbow__layer--green {
--text-color: var(--color-green);
}
.c-rainbow__layer--yellow {
--text-color: var(--color-yellow);
}
@keyframes rainbow {
0%,
100% {
transform: translatey(var(--axis-y));
}
50% {
transform: translatey(calc(var(--axis-y) * -1));
}
}
</style>
<ul class="c-rainbow">
<li class="c-rainbow__layer c-rainbow__layer--white">DESARROLLANDO</li>
<li class="c-rainbow__layer c-rainbow__layer--orange">DESARROLLANDO</li>
<li class="c-rainbow__layer c-rainbow__layer--red">DESARROLLANDO</li>
<li class="c-rainbow__layer c-rainbow__layer--violet">DESARROLLANDO</li>
<li class="c-rainbow__layer c-rainbow__layer--blue">DESARROLLANDO</li>
<li class="c-rainbow__layer c-rainbow__layer--green">DESARROLLANDO</li>
<li class="c-rainbow__layer c-rainbow__layer--yellow">DESARROLLANDO</li>
</ul>