-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfish.css
101 lines (88 loc) · 2.15 KB
/
fish.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
@keyframes swim-across-screen-rtl {
0% {
right: -50vw;
}
100% {
right: 150vw;
}
}
@keyframes swim-across-screen-ltr {
0% {
left: -50vw;
}
100% {
left: 150vw;
}
}
@keyframes bob-up-and-down {
0% {
padding-top: 0px;
padding-bottom: 0px;
}
50% {
padding-top: 6px;
padding-bottom: 6px;
}
100% {
padding-top: 0px;
padding-bottom: 0px;
}
}
div.fish {
position: fixed;
z-index: -1;
font-size: 1rem;
}
div.fish.tropical {
animation-name: swim-across-screen-rtl, bob-up-and-down;
animation-delay: 70s, 0s;
animation-duration: 90s, 2s;
animation-iteration-count: infinite, infinite;
top: 10%;
right: -50vw;
}
div.fish.blowfish {
animation-name: swim-across-screen-ltr, bob-up-and-down;
animation-delay: 100s, 0.2s;
animation-duration: 140s, 4s;
animation-iteration-count: 1, infinite;
transform: scale(-1, 1);
top: 22%;
left: -50vw;
}
div.fish.school1.member1 {
animation-name: swim-across-screen-rtl, bob-up-and-down;
animation-delay: 10s, 0s;
animation-duration: 38s, 1s;
animation-iteration-count: infinite, infinite;
animation-timing-function: ease-in-out, linear;
bottom: 20%;
right: -50vw;
}
div.fish.school1.member2 {
animation-name: swim-across-screen-rtl, bob-up-and-down;
animation-delay: 12s, 0.1s;
animation-duration: 38s, 1s;
animation-iteration-count: infinite, infinite;
animation-timing-function: ease-out, linear;
bottom: 22%;
right: -50vw;
}
div.fish.school1.member3 {
animation-name: swim-across-screen-rtl, bob-up-and-down;
animation-delay: 10.2s, 0.2s;
animation-duration: 38s, 1s;
animation-iteration-count: infinite, infinite;
animation-timing-function: ease-in-out, linear;
bottom: 28%;
right: -50vw;
}
div.fish.school1.member4 {
animation-name: swim-across-screen-rtl, bob-up-and-down;
animation-delay: 9.6s, 0.6s;
animation-duration: 38s, 1.5s;
animation-iteration-count: infinite, infinite;
animation-timing-function: linear, linear;
bottom: 15%;
right: -50vw;
}