-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebbubstyles.css
123 lines (108 loc) · 2.29 KB
/
webbubstyles.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
.bubble {
position: absolute;
width: 100px;
height: 100px;
border-radius: 50%;
animation: float 8s ease-in-out infinite, shrink 90s ease-in-out infinite;
box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.25);
z-index: -1;
}
.bubble.mobile {
bottom: -1000vh
}
#bubble-container {
/* position: absolute;
bottom: 0; */
width: 100%;
pointer-events: none;
}
.bubble::before {
content: '';
position: absolute;
top: 20%;
left: 20%;
width: 20%;
height: 20%;
border-radius: 50%;
background: #fff;
z-index: 10;
filter: blur(2px);
}
.bubble::after {
content: '';
position: absolute;
top: 40%;
left: 40%;
width: 10%;
height: 10%;
border-radius: 50%;
background: #fff;
z-index: 10;
filter: blur(2px);
}
.bubble span {
position: absolute;
border-radius: 50%;
}
.bubble span:nth-child(1) {
inset: 10px;
border-left: 15px solid #f648b0;
filter: blur(8px);
}
.bubble span:nth-child(2) {
inset: 10px;
border-right: 15px solid #000000;
filter: blur(8px);
}
.bubble span:nth-child(3) {
inset: 20px;
border-top: 15px solid #62bffd;
filter: blur(8px);
}
.bubble span:nth-child(4) {
inset: 30px;
border-left: 15px solid #f2ff8d;
filter: blur(12px);
}
.bubble span:nth-child(5) {
inset: 10px;
border-bottom: 10px solid #fff;
filter: blur(8px);
transform: rotate(330deg);
}
@keyframes float {
0% {
transform: translateX(0) scale(0);
opacity: 1;
}
50% {
transform: translateX(-10px) scale(1);
}
100% {
top: -200px; /* Change this to move the bubbles up */
transform: translateX(0) scale(0);
opacity: 1;
}
}
@keyframes shrink {
0% { transform: scale(1); }
100% { transform: scale(0); }
}
@media (max-width: 600px) {
h1 {
font-size: 2em;
}
}
/* Styles for screens that are 600px wide or less */
@media (max-width: 600px) {
.bubble {
width: 50px; /* Make the bubbles smaller */
height: 50px; /* Make the bubbles smaller */
animation: float 10s ease-in-out infinite, shrink 15s ease-in-out infinite; /* Make the bubbles move slower */
}
}
@media (max-width: 600px) {
img {
width: 50%; /* Width on smaller screens */
}
}