DoctorSlimm commited on
Commit
3d59142
·
verified ·
1 Parent(s): 5702308

Create skeleton.html

Browse files
Files changed (1) hide show
  1. skeleton.html +31 -0
skeleton.html ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <style>
5
+ html, body { margin: 0; padding: 0; height: 100%; background: transparent; display: flex; justify-content: center; align-items: center; }
6
+
7
+ .skeleton {
8
+ background: #e0e0e0;
9
+ animation: pulse 1.5s infinite;
10
+ border-radius: 8px;
11
+ opacity: 0.7;
12
+ }
13
+
14
+ .banner {
15
+ width: calc(min(100vw - 45px, 841px));
16
+ height: auto;
17
+ max-height: 512px;
18
+ aspect-ratio: 16/9;
19
+ }
20
+
21
+ @keyframes pulse { 0% { opacity: 0.6; } 100% { opacity: 0.9; } }
22
+ </style>
23
+ </head>
24
+ <body>
25
+ <script>
26
+ const skeleton = document.createElement('div');
27
+ skeleton.className = 'skeleton banner';
28
+ document.body.appendChild(skeleton);
29
+ </script>
30
+ </body>
31
+ </html>