Spaces:
Running
Running
animation reduced for mobile compatibility
Browse files- battlewords/ui.py +4 -4
battlewords/ui.py
CHANGED
|
@@ -234,7 +234,7 @@ ocean_background_css = """
|
|
| 234 |
repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 18px);
|
| 235 |
mix-blend-mode: screen;
|
| 236 |
opacity: 0.10;
|
| 237 |
-
animation: waveOverlayScroll 16s linear infinite
|
| 238 |
}
|
| 239 |
.stIFrame {
|
| 240 |
margin-bottom:25px;
|
|
@@ -300,20 +300,20 @@ def inject_ocean_layers() -> None:
|
|
| 300 |
z-index: 11;
|
| 301 |
background: radial-gradient(150% 100% at 50% -20%, rgba(255,255,255,0.10) 0%, transparent 60%);
|
| 302 |
background-size: 150% 150%; /* reduced from 300% */
|
| 303 |
-
animation: oceanHighlight 12s ease-in-out infinite;
|
| 304 |
}
|
| 305 |
.bw-bg-long {
|
| 306 |
z-index: 12;
|
| 307 |
background: repeating-linear-gradient(-6deg, rgba(255,255,255,0.08) 0px, rgba(255,255,255,0.08) 18px, rgba(0,0,0,0.04) 18px, rgba(0,0,0,0.04) 48px);
|
| 308 |
background-size: 150% 150%; /* reduced from 320% */
|
| 309 |
-
animation: oceanLong 36s linear infinite; /* doubled from 18s */
|
| 310 |
opacity: 0.2;
|
| 311 |
}
|
| 312 |
.bw-bg-mid {
|
| 313 |
z-index: 13;
|
| 314 |
background: repeating-linear-gradient(-12deg, rgba(255,255,255,0.10) 0px, rgba(255,255,255,0.10) 10px, rgba(0,0,0,0.05) 10px, rgba(0,0,0,0.05) 26px);
|
| 315 |
background-size: 150% 150%; /* reduced from 260% */
|
| 316 |
-
animation: oceanMid 24s linear infinite; /* doubled from 12s */
|
| 317 |
opacity: 0.2;
|
| 318 |
}
|
| 319 |
.bw-bg-fine {
|
|
|
|
| 234 |
repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 18px);
|
| 235 |
mix-blend-mode: screen;
|
| 236 |
opacity: 0.10;
|
| 237 |
+
/*animation: waveOverlayScroll 16s linear infinite;*/
|
| 238 |
}
|
| 239 |
.stIFrame {
|
| 240 |
margin-bottom:25px;
|
|
|
|
| 300 |
z-index: 11;
|
| 301 |
background: radial-gradient(150% 100% at 50% -20%, rgba(255,255,255,0.10) 0%, transparent 60%);
|
| 302 |
background-size: 150% 150%; /* reduced from 300% */
|
| 303 |
+
/* animation: oceanHighlight 12s ease-in-out infinite; */ /* doubled from 6s */
|
| 304 |
}
|
| 305 |
.bw-bg-long {
|
| 306 |
z-index: 12;
|
| 307 |
background: repeating-linear-gradient(-6deg, rgba(255,255,255,0.08) 0px, rgba(255,255,255,0.08) 18px, rgba(0,0,0,0.04) 18px, rgba(0,0,0,0.04) 48px);
|
| 308 |
background-size: 150% 150%; /* reduced from 320% */
|
| 309 |
+
/* animation: oceanLong 36s linear infinite; */ /* doubled from 18s */
|
| 310 |
opacity: 0.2;
|
| 311 |
}
|
| 312 |
.bw-bg-mid {
|
| 313 |
z-index: 13;
|
| 314 |
background: repeating-linear-gradient(-12deg, rgba(255,255,255,0.10) 0px, rgba(255,255,255,0.10) 10px, rgba(0,0,0,0.05) 10px, rgba(0,0,0,0.05) 26px);
|
| 315 |
background-size: 150% 150%; /* reduced from 260% */
|
| 316 |
+
/* animation: oceanMid 24s linear infinite; */ /* doubled from 12s */
|
| 317 |
opacity: 0.2;
|
| 318 |
}
|
| 319 |
.bw-bg-fine {
|