Skip to content

Commit ea08ba8

Browse files
committed
Add background bubbles
1 parent 45b1610 commit ea08ba8

1 file changed

Lines changed: 44 additions & 17 deletions

File tree

style.css

Lines changed: 44 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,57 @@ body {
4343
body::before {
4444
content: '';
4545
position: fixed;
46-
top: -50%;
47-
left: -50%;
48-
width: 200%;
49-
height: 200%;
50-
background: radial-gradient(circle at 35% 35%, rgba(78, 205, 196, 0.06) 0%, transparent 70%),
51-
radial-gradient(circle at 65% 65%, rgba(255, 107, 107, 0.06) 0%, transparent 70%),
52-
radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.04) 0%, transparent 70%);
53-
animation: globalGlow 12s ease-in-out infinite;
46+
top: 0;
47+
left: 0;
48+
width: 100%;
49+
height: 120%;
50+
background:
51+
radial-gradient(circle 60px at 15% 20%, rgba(78, 205, 196, 0.6) 0%, transparent 70%),
52+
radial-gradient(circle 80px at 85% 40%, rgba(255, 215, 0, 0.5) 0%, transparent 70%),
53+
radial-gradient(circle 40px at 50% 15%, rgba(255, 107, 107, 0.5) 0%, transparent 70%),
54+
radial-gradient(circle 70px at 75% 35%, rgba(149, 225, 211, 0.5) 0%, transparent 70%),
55+
radial-gradient(circle 50px at 25% 60%, rgba(255, 182, 193, 0.4) 0%, transparent 70%),
56+
radial-gradient(circle 45px at 60% 80%, rgba(78, 205, 196, 0.4) 0%, transparent 70%),
57+
radial-gradient(circle 55px at 35% 100%, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
58+
animation: bubblesFloat 15s linear infinite;
5459
z-index: -1;
5560
pointer-events: none;
5661
}
5762

58-
@keyframes globalGlow {
59-
0%, 100% {
60-
transform: translate(0, 0) scale(1);
63+
body::after {
64+
content: '';
65+
position: fixed;
66+
top: 0;
67+
left: 0;
68+
width: 100%;
69+
height: 120%;
70+
background:
71+
radial-gradient(circle 90px at 30% 10%, rgba(78, 205, 196, 0.4) 0%, transparent 70%),
72+
radial-gradient(circle 45px at 70% 25%, rgba(255, 215, 0, 0.4) 0%, transparent 70%),
73+
radial-gradient(circle 65px at 10% 45%, rgba(255, 107, 107, 0.4) 0%, transparent 70%),
74+
radial-gradient(circle 55px at 90% 65%, rgba(149, 225, 211, 0.4) 0%, transparent 70%),
75+
radial-gradient(circle 40px at 80% 85%, rgba(255, 182, 193, 0.3) 0%, transparent 70%),
76+
radial-gradient(circle 60px at 20% 110%, rgba(255, 107, 107, 0.3) 0%, transparent 70%);
77+
animation: bubblesFloat 20s linear infinite;
78+
animation-delay: -10s;
79+
z-index: -2;
80+
pointer-events: none;
81+
}
82+
83+
@keyframes bubblesFloat {
84+
0% {
85+
transform: translateY(20%);
86+
opacity: 0;
87+
}
88+
10% {
6189
opacity: 1;
6290
}
63-
33% {
64-
transform: translate(10px, -10px) scale(1.02);
65-
opacity: 0.9;
91+
90% {
92+
opacity: 1;
6693
}
67-
66% {
68-
transform: translate(-10px, 10px) scale(0.98);
69-
opacity: 0.95;
94+
100% {
95+
transform: translateY(-30%);
96+
opacity: 0;
7097
}
7198
}
7299

0 commit comments

Comments
 (0)