-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
96 lines (83 loc) · 1.63 KB
/
styles.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
body {
background-color: rgb(100,100,200);
overflow: hidden;
}
.school-fish-section {
grid-row: 4;
grid-column: 1/-1;
display: grid;
grid-template-columns: 100vw;
grid-template-rows: 100vh;
align-items: center;
}
.school-fish-section > div {
grid-column: 1;
grid-row: 1;
width: 8vh;
animation: school-swim 8s ease-in-out infinite;
}
.school-fish {
width: 8vh;
height: 2vh;
display: flex;
margin-top: 1.5vh;
}
.sf-body {
background: linear-gradient(
to left,
orange 0% 20%,
white 20% 28%,
orange 28% 45%,
white 45% 56%,
orange 56% 84%,
white 84% 90%,
orange 90% 100%
);
width: 5vh;
height: 2vh;
border-radius: 50%;
}
.sf-tail {
border-left: 1vh solid black;
border-top: 0.7vh solid transparent;
border-bottom: 0.7vh solid transparent;
}
.sf-eye {
width: 0.4vh;
height: 0.4vh;
border-radius: 50%;
background: black;
transform: translate(4.2vh, 0.6vh);
}
#school-5 {
animation-delay: 0.1s;
}
#school-4 {
animation-delay: 0.2s;
}
#school-3 {
animation-delay: 0.3s;
}
#school-2 {
animation-delay: 0.4s;
}
#school-1 {
animation-delay: 0.5s;
}
@keyframes school-swim {
0% {
transform: translateX(0vw);
}
40% {
transform: translateX(calc(97vw - 8vh)) rotateY(0deg);
}
50% {
transform: translateX(calc(97vw - 8vh)) rotateY(180deg);
}
90% {
transform: translateX(0vw) rotateY(180deg);
}
100% {
transform: translateX(0vw) rotateY(0deg);
}
}