tutorial2d
This commit is contained in:
BIN
assets/img/tutorial2d.png
Normal file
BIN
assets/img/tutorial2d.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 63 KiB |
10
src/components/assets-loaded.js
Normal file
10
src/components/assets-loaded.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
AFRAME.registerComponent('assets-loaded', {
|
||||||
|
init: function () {
|
||||||
|
this.el.addEventListener('loaded', this.onLoad.bind(this));
|
||||||
|
this.el.addEventListener('timeout', this.onLoad.bind(this));
|
||||||
|
},
|
||||||
|
|
||||||
|
onLoad: function (ev) {
|
||||||
|
document.getElementById('tutorial2d').style.display = 'none';
|
||||||
|
}
|
||||||
|
});
|
||||||
@@ -45,3 +45,17 @@ html {
|
|||||||
50% { opacity: 0.8; }
|
50% { opacity: 0.8; }
|
||||||
100% { opacity: 1; }
|
100% { opacity: 1; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#tutorial2d {
|
||||||
|
position: absolute;
|
||||||
|
width: 60%;
|
||||||
|
left: 20%;
|
||||||
|
top: 35%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1280px) {
|
||||||
|
#tutorial2d {
|
||||||
|
width: 80%;
|
||||||
|
left: 10%;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -46,7 +46,8 @@
|
|||||||
search
|
search
|
||||||
stage-colors="color: blue"
|
stage-colors="color: blue"
|
||||||
fog="color: #a00; density: 0.035; type: exponential"
|
fog="color: #a00; density: 0.035; type: exponential"
|
||||||
vr-mode-ui="enterVRButton: #vrButton">
|
vr-mode-ui="enterVRButton: #vrButton"
|
||||||
|
assets-loaded>
|
||||||
|
|
||||||
<a-assets timeout="10000">
|
<a-assets timeout="10000">
|
||||||
{% include './assets.html' %}
|
{% include './assets.html' %}
|
||||||
@@ -208,6 +209,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</a-scene>
|
</a-scene>
|
||||||
|
|
||||||
|
<img src="assets/img/tutorial2d.png" id="tutorial2d">
|
||||||
<a id="vrButton" href="#" title="Enter VR / Fullscreen"></a>
|
<a id="vrButton" href="#" title="Enter VR / Fullscreen"></a>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user