Translsis commited on
Commit
a046038
·
verified ·
1 Parent(s): 9e4d06c

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +5 -2
index.html CHANGED
@@ -68,6 +68,9 @@
68
  object-fit: cover;
69
  z-index: -1;
70
  border-radius: 15px;
 
 
 
71
  }
72
 
73
  h1 {
@@ -148,7 +151,7 @@
148
 
149
  <!-- Khung chữ với nội dung -->
150
  <div class="container">
151
- <video class="video-background" autoplay loop muted playsinline>
152
  <source src="video.mp4" type="video/mp4">
153
  </video>
154
  <h1>
@@ -159,7 +162,7 @@
159
  </div>
160
 
161
  <div id="spider" class="spider">💗</div>
162
- <audio id="bg-music" src="music.mp3" autoplay loop hidden></audio>
163
 
164
  <script>
165
  const spider = document.getElementById('spider');
 
68
  object-fit: cover;
69
  z-index: -1;
70
  border-radius: 15px;
71
+ will-change: transform;
72
+ transform: translateZ(0);
73
+ backface-visibility: hidden;
74
  }
75
 
76
  h1 {
 
151
 
152
  <!-- Khung chữ với nội dung -->
153
  <div class="container">
154
+ <video class="video-background" autoplay loop muted playsinline preload="auto" loading="eager">
155
  <source src="video.mp4" type="video/mp4">
156
  </video>
157
  <h1>
 
162
  </div>
163
 
164
  <div id="spider" class="spider">💗</div>
165
+ <audio id="bg-music" src="music.mp3" preload="auto"></audio>
166
 
167
  <script>
168
  const spider = document.getElementById('spider');