-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbubble.css
More file actions
43 lines (43 loc) · 875 Bytes
/
Copy pathbubble.css
File metadata and controls
43 lines (43 loc) · 875 Bytes
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
min-height: 100vh;
background-color: black;
}
.container{
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
}
.bubble{
position: relative;
display: flex;
}
.bubble span{
position: relative;
width: 30px;
height: 30px;
background-color:#4fc3dc;
margin: 0 4px;
border-radius: 50%;
box-shadow: 0 0 0 10px #4fc3dc44, 0 0 50px #4fc3dc, 0 0 100px #4fc3dc;
animation: animate 15s linear infinite;
animation-duration: calc(125s /var(--i));
}
.bubble span:nth-child(even){
background-color: #ff2d75;
box-shadow: 0 0 0 10px #ff2d7544, 0 0 50px #ff2d75, 0 0 100px #ff2d75 ;
}
@keyframes animate
{
0%{
transform: translateY(100vh) scale(0);
}
100%{
transform: translateY(-10vh) scale(1);
}
}