@@ -40,44 +40,10 @@ body {
4040 -webkit-text-size-adjust : 100% ;
4141}
4242
43- body ::before {
44- content : '' ;
45- position : fixed;
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;
59- z-index : -1 ;
60- pointer-events : none;
61- }
62-
43+ /* Hide bubbles on desktop */
44+ body ::before ,
6345body ::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;
46+ display : none;
8147}
8248
8349@keyframes bubblesFloat {
@@ -86,11 +52,41 @@ body::after {
8652 opacity : 0 ;
8753 }
8854 10% {
55+ transform : translateY (15% );
8956 opacity : 1 ;
9057 }
91- 90% {
58+ 20% {
59+ transform : translateY (10% );
60+ opacity : 1 ;
61+ }
62+ 30% {
63+ transform : translateY (5% );
64+ opacity : 1 ;
65+ }
66+ 40% {
67+ transform : translateY (0% );
9268 opacity : 1 ;
9369 }
70+ 50% {
71+ transform : translateY (-5% );
72+ opacity : 1 ;
73+ }
74+ 60% {
75+ transform : translateY (-10% );
76+ opacity : 1 ;
77+ }
78+ 70% {
79+ transform : translateY (-15% );
80+ opacity : 1 ;
81+ }
82+ 80% {
83+ transform : translateY (-20% );
84+ opacity : 1 ;
85+ }
86+ 90% {
87+ transform : translateY (-25% );
88+ opacity : 0.8 ;
89+ }
9490 100% {
9591 transform : translateY (-30% );
9692 opacity : 0 ;
@@ -1146,6 +1142,42 @@ body::after {
11461142
11471143/* Mobile devices */
11481144@media (max-width : 480px ) {
1145+ /* Cartoony mobile bubbles */
1146+ body ::before {
1147+ display : block;
1148+ content : '' ;
1149+ position : fixed;
1150+ top : 0 ;
1151+ left : 0 ;
1152+ width : 100% ;
1153+ height : 120% ;
1154+ background :
1155+ radial-gradient (circle 40px at 20% 30% , rgba (78 , 205 , 196 , 0.4 ) 0% , rgba (78 , 205 , 196 , 0.2 ) 50% , rgba (0 , 0 , 0 , 0.08 ) 55% , transparent 60% ),
1156+ radial-gradient (circle 50px at 80% 20% , rgba (255 , 215 , 0 , 0.35 ) 0% , rgba (255 , 215 , 0 , 0.18 ) 50% , rgba (0 , 0 , 0 , 0.08 ) 55% , transparent 60% ),
1157+ radial-gradient (circle 30px at 60% 70% , rgba (255 , 107 , 107 , 0.4 ) 0% , rgba (255 , 107 , 107 , 0.2 ) 50% , rgba (0 , 0 , 0 , 0.08 ) 55% , transparent 60% ),
1158+ radial-gradient (circle 35px at 25% 80% , rgba (149 , 225 , 211 , 0.35 ) 0% , rgba (149 , 225 , 211 , 0.18 ) 50% , rgba (0 , 0 , 0 , 0.08 ) 55% , transparent 60% );
1159+ animation : bubblesFloat 25s linear infinite;
1160+ z-index : -1 ;
1161+ pointer-events : none;
1162+ }
1163+
1164+ body ::after {
1165+ display : block;
1166+ content : '' ;
1167+ position : fixed;
1168+ top : 0 ;
1169+ left : 0 ;
1170+ width : 100% ;
1171+ height : 120% ;
1172+ background :
1173+ radial-gradient (circle 45px at 70% 50% , rgba (255 , 182 , 193 , 0.3 ) 0% , rgba (255 , 182 , 193 , 0.15 ) 50% , rgba (0 , 0 , 0 , 0.06 ) 55% , transparent 60% ),
1174+ radial-gradient (circle 30px at 15% 60% , rgba (138 , 43 , 226 , 0.25 ) 0% , rgba (138 , 43 , 226 , 0.12 ) 50% , rgba (0 , 0 , 0 , 0.06 ) 55% , transparent 60% );
1175+ animation : bubblesFloat 30s linear infinite;
1176+ animation-delay : -15s ;
1177+ z-index : -2 ;
1178+ pointer-events : none;
1179+ }
1180+
11491181 .header {
11501182 padding : 2rem 0.75rem 1.5rem ;
11511183 }
0 commit comments