-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbubble.css
More file actions
116 lines (110 loc) · 1.93 KB
/
Copy pathbubble.css
File metadata and controls
116 lines (110 loc) · 1.93 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
body, html{
width : 100%;
height : 100%
}
body{
margin : 0;
padding : 0;
background: #9b59b6;
}
.bubbles{
position : absolute;
width: 100%;
height : 100%;
z-index : 0;
overflow : hidden;
top : 0;
left : 0;
}
.bubble{
position : absolute;
bottom : -100px;
width : 40px;
height : 40px;
background : #f1f1f1;
border-radius : 50%;
opacity : 0.5;
animation: flying 10s infinite ease-in;
}
.bubble:nth-child(1){
width : 40px;
height : 40px;
left: 10%;
animation-duration: 8s;
}
.bubble:nth-child(2){
width : 20px;
height : 20px;
left: 20%;
animation-duration: 5s;
animation-delay : 1s;
}
.bubble:nth-child(3){
width : 50px;
height : 50px;
left: 35%;
animation-duration: 10s;
animation-delay : 2s;
}
.bubble:nth-child(4){
width : 80px;
height : 80px;
left: 50%;
animation-duration: 7s;
animation-delay : 0s;
}
.bubble:nth-child(5){
width : 30px;
height : 30px;
left: 58%;
animation-duration: 8s;
animation-delay : 2s;
}
.bubble:nth-child(6){
width : 45px;
height : 45px;
left: 68%;
animation-duration: 9s;
animation-delay : 0.5s;
}
.bubble:nth-child(7){
width : 20px;
height : 20px;
left: 75%;
animation-duration: 5s;
animation-delay : 3s;
}
.bubble:nth-child(8){
width : 55px;
height : 55px;
left: 85%;
animation-duration: 5s;
animation-delay : 2s;
}
.bubble:nth-child(9){
width : 10px;
height : 10px;
left: 95%;
animation-duration: 5s;
animation-delay : 1s;
}
.bubble:nth-child(10){
width : 20px;
height : 20px;
left: 100%;
animation-duration: 10s;
animation-delay : 4s;
}
@keyframes flying{
0%{
bottom: -100px;
transform : translateX(0);
}
50%{
transform : translateX(100px);
}
100%{
bottom: 1080px;
transform: tranlateX(-200px);
}
}