Created
August 30, 2017 06:38
-
-
Save ssudoku/f0d9aa3dd06d7493b9cb091c9bce8422 to your computer and use it in GitHub Desktop.
a-frame pano embed code
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
<div class=”vr-container”> <!-- container div --> | |
<a-scene class=”vr-background”> <!-- the a-frame embed code --> | |
<a-entity rotation="0 0 0"> <!-- rotation value sets the starting view point, play around! --> | |
<a-animation attribute="rotation" | |
dur="600000" | |
easing="linear" | |
fill="forwards" | |
to="0 360 0" | |
repeat="indefinite"></a-animation> <!-- remove if you don’t like the automatic movement --> | |
<a-sky src="your-image-link"></a-sky> | |
</a-entity> | |
</a-scene> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment