-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
125 lines (99 loc) · 1.96 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
113
114
115
116
117
118
119
120
121
122
123
124
125
/* GLOBAL ADJUSTMENTS */
* {
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
/* NUMERIC ADJUSTMENT */
:root {
font-size: 62.5%;
}
/* BODY SETUP */
body {
background-image: url(./assets/fundo.svg);
background-repeat:repeat-x;
}
/* LIST OF HOLES SETUP */
.holes {
display: grid;
gap: 5.4rem;
grid-template-areas:
"A B C D"
"E F G H"
"I J K L";
margin: 22.5rem 24.5rem 18.7rem 18.8rem;
width: 90%;
position: relative;
list-style: none;
z-index: 0;
}
/* HOLE SETUP */
.hole {
background-image: url(./assets/toupeira6.svg);
width: 22.2rem;
height: 17.2rem;
}
/* ANIMATION PER HOLE SETUP */
.holes div {
animation-name: fade-in;
animation-duration: 2s;
animation-iteration-count: var(1 + 2s);
}
/* BELOW ARE ANIMATION DELAYS FOR EACH HOLE */
.holes .hole:nth-child(1) {
animation-delay: 2s;
}
.holes .hole:nth-child(2) {
animation-delay: 18s;
}
.holes .hole:nth-child(3) {
animation-delay: 10s;
}
.holes .hole:nth-child(4) {
animation-delay: 4s;
}
.holes .hole:nth-child(5) {
animation-delay: 6s;
}
.holes .hole:nth-child(6) {
animation-delay: 14s;
}
.holes .hole:nth-child(7) {
animation-delay: 24s;
}
.holes .hole:nth-child(8) {
animation-delay: 22s;
}
.holes .hole:nth-child(9) {
animation-delay: 12s;
}
.holes .hole:nth-child(10) {
animation-delay: 20s;
}
.holes .hole:nth-child(11) {
animation-delay: 8s;
}
.holes .hole:nth-child(12) {
animation-delay: 16s;
}
/* ANIMATIONS */
@keyframes fade-in {
0% {
background-image: url(./assets/toupeira1.svg);
}
20% {
background-image: url(./assets/toupeira2.svg);
}
30%, 50% {
background-image: url(./assets/toupeira3.svg);
}
60% {
background-image: url(./assets/toupeira4.svg);
}
80% {
background-image: url(./assets/toupeira5.svg);
}
100% {
background-image: url(./assets/toupeira6.svg);
}
}