Ronaldo1111 commited on
Commit
9261e4d
·
verified ·
1 Parent(s): c399b07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +37 -14
app.py CHANGED
@@ -288,23 +288,46 @@ html_template = '''
288
  100% { opacity: 0; }
289
  }
290
  .balloon {
291
- position: fixed;
292
- width: 60px;
293
- height: 80px;
294
- background-size: contain;
295
- background-repeat: no-repeat;
296
- z-index: 9999;
297
- animation: floatUp 12s linear infinite;
 
 
 
 
 
 
298
  }
299
- #balloon1 { background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon1.png"); left: 10%; animation-delay: 0s; }
300
- #balloon2 { background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon2.png"); left: 30%; animation-delay: 2s; }
301
- #balloon3 { background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon3.png"); left: 50%; animation-delay: 4s; }
302
- #balloon4 { background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon4.png"); left: 70%; animation-delay: 6s; }
303
- #balloon5 { background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon5.png"); left: 90%; animation-delay: 8s; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
304
  @keyframes floatUp {
305
- 0% { top: 100%; }
306
- 100% { top: -20%; }
307
  }
 
308
  #music-toggle, #next-track {
309
  position: fixed;
310
  padding: 8px 12px;
 
288
  100% { opacity: 0; }
289
  }
290
  .balloon {
291
+ position: fixed;
292
+ width: 60px;
293
+ height: 80px;
294
+ background-size: contain;
295
+ background-repeat: no-repeat;
296
+ z-index: 9999;
297
+ animation: floatUp 12s linear infinite;
298
+ }
299
+
300
+ #balloon1 {
301
+ background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon1.png");
302
+ left: 10%;
303
+ animation-delay: 0s;
304
  }
305
+ #balloon2 {
306
+ background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon2.png");
307
+ left: 30%;
308
+ animation-delay: 2s;
309
+ }
310
+ #balloon3 {
311
+ background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon3.png");
312
+ left: 50%;
313
+ animation-delay: 4s;
314
+ }
315
+ #balloon4 {
316
+ background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon4.png");
317
+ left: 70%;
318
+ animation-delay: 6s;
319
+ }
320
+ #balloon5 {
321
+ background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon5.png");
322
+ left: 90%;
323
+ animation-delay: 8s;
324
+ }
325
+
326
  @keyframes floatUp {
327
+ 0% { transform: translateY(0); }
328
+ 100% { transform: translateY(-120vh); }
329
  }
330
+
331
  #music-toggle, #next-track {
332
  position: fixed;
333
  padding: 8px 12px;