-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathAnimation.css
More file actions
114 lines (102 loc) · 1.71 KB
/
Animation.css
File metadata and controls
114 lines (102 loc) · 1.71 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
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
.container{
background: url('underwater.jpg');
height: 100vh;
width: 100vw;
background-repeat: no-repeat;
background-position:bottom ;
background-size: cover;
}
.fish-container{
position: fixed;
height: 100%;
width: 100%;
display: flex;
}
.fish-container img{
height: 100px;
position: absolute;
}
.fish1{
top: 33%;
left: -10%;
transform: translateY(-50%);
animation: fishAnimation 12s linear infinite;
}
.fish2{
top: 66%;
left: -10%;
transform: translateY(-50%);
animation: fishAnimation 12s linear infinite 5s;
}
.fish3{
left: -30%;
top: 110%;
animation: fishAnimation2 16s linear infinite 3s;
}
.smallFish{
position: absolute;
height: 65px !important;
top: 3%;
left: -10%;
opacity: 0.75;
animation: fishAnimation 15s linear infinite 3s;
}
@keyframes fishAnimation {
0%{
left: -10%;
}
100%{
left: 150%;
}
}
@keyframes fishAnimation2{
0%{
left: -30%;
top: 110%;
}
100%{
left: 110%;
top: -30%;
}
}
.bubble-container{
position: fixed;
height: 100%;
width: 100%;
display: flex;
}
.bubble-container img{
height: 40px;
position: absolute;
top: 140%;
transform: translateX(-50%);
}
.bubble1{
left: 16%;
animation: bubbleAnim 7s linear infinite 2s;
}
.bubble2{
left: 48%;
animation: bubbleAnim 7s linear infinite 8s;
}
.bubble3{
left: 80%;
animation: bubbleAnim 7s linear infinite 5s;
}
@keyframes bubbleAnim{
0%{
top: 140%;
}
75%{
opacity: 1;
}
100%{
top: 20%;
opacity: 0;
}
}