Skip to content

Instantly share code, notes, and snippets.

@ssudoku
Created August 30, 2017 06:41
Show Gist options
  • Save ssudoku/a6aa4666e87440a92657973e5a5564ed to your computer and use it in GitHub Desktop.
Save ssudoku/a6aa4666e87440a92657973e5a5564ed to your computer and use it in GitHub Desktop.
overlaying content over a-frame
<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 class="vr-overlay-content">
<h1>Let's explore the virtual world.</h1>
<button class="action">Get Started</button>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment