Created
July 5, 2018 12:34
-
-
Save gufranmirza/847959518c0514c75f01ddba72d78d34 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a-scene> | |
<a-assets> | |
<audio id="click-sound" src="audio/click.ogg"></audio> | |
<!-- Images. --> | |
<img id="city" src="https://cdn.aframe.io/360-image-gallery-boilerplate/img/city.jpg"> | |
<img id="city-thumb" src="https://cdn.aframe.io/360-image-gallery-boilerplate/img/thumb-city.jpg"> | |
<img id="cubes" src="https://cdn.aframe.io/360-image-gallery-boilerplate/img/cubes.jpg"> | |
<img id="cubes-thumb" src="https://cdn.aframe.io/360-image-gallery-boilerplate/img/thumb-cubes.jpg"> | |
<img id="sechelt" src="https://cdn.aframe.io/360-image-gallery-boilerplate/img/sechelt.jpg"> | |
<img id="sechelt-thumb" src="https://cdn.aframe.io/360-image-gallery-boilerplate/img/thumb-sechelt.jpg"> | |
</a-assets> | |
<!-- 360-degree image. --> | |
<a-sky id="image-360" radius="10" src="#city"></a-sky> | |
<!-- Link we will build. --> | |
<a-entity class="link"></a-entity> | |
<!-- Camera + Cursor. --> | |
<a-camera> | |
<a-cursor id="cursor"> | |
<a-animation begin="click" easing="ease-in" attribute="scale" | |
fill="backwards" from="0.1 0.1 0.1" to="1 1 1" dur="150"></a-animation> | |
<a-animation begin="cursor-fusing" easing="ease-in" attribute="scale" | |
from="1 1 1" to="0.1 0.1 0.1" dur="1500"></a-animation> | |
</a-cursor> | |
</a-camera> | |
</a-scene> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment