Spaces:
Running
Running
Hero polish: fully hide boot overlay after fade (no lingering text)
Browse files
static/a11oy_cathedral.js
CHANGED
|
@@ -159,6 +159,8 @@ function animate(){
|
|
| 159 |
}
|
| 160 |
window.addEventListener('resize',()=>{ camera.aspect=window.innerWidth/window.innerHeight; camera.updateProjectionMatrix(); renderer.setSize(window.innerWidth,window.innerHeight); });
|
| 161 |
paintHUD(); animate();
|
| 162 |
-
document.getElementById('boot').classList.add('hide');
|
|
|
|
|
|
|
| 163 |
poll(); setInterval(poll, 8000);
|
| 164 |
controls.addEventListener('start',()=>{ controls.autoRotate=false; });
|
|
|
|
| 159 |
}
|
| 160 |
window.addEventListener('resize',()=>{ camera.aspect=window.innerWidth/window.innerHeight; camera.updateProjectionMatrix(); renderer.setSize(window.innerWidth,window.innerHeight); });
|
| 161 |
paintHUD(); animate();
|
| 162 |
+
(function(){ var b=document.getElementById('boot'); b.classList.add('hide');
|
| 163 |
+
b.addEventListener('transitionend', function(){ b.style.display='none'; });
|
| 164 |
+
setTimeout(function(){ b.style.display='none'; }, 1200); })();
|
| 165 |
poll(); setInterval(poll, 8000);
|
| 166 |
controls.addEventListener('start',()=>{ controls.autoRotate=false; });
|