hide loading canvas during load
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
AFRAME.registerComponent('tutorial-2d', {
|
||||
init: function () {
|
||||
this.el.sceneEl.canvas.style.display = 'none';
|
||||
},
|
||||
|
||||
play: function () {
|
||||
this.el.sceneEl.canvas.style.display = 'block';
|
||||
document.getElementById('tutorial2d').style.display = 'none';
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user