Created
August 30, 2017 06:40
-
-
Save ssudoku/e7162152c5232d36010b3db8fb3cda08 to your computer and use it in GitHub Desktop.
a-frame pano viewer css
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
// Without these next 2 rules, a-frame will hide the rest of the page and disable scrolling | |
body.a-body { | |
height: auto; | |
overflow: auto; | |
} | |
html.a-html { | |
height: auto; | |
overflow: auto; | |
position: static; | |
} | |
// Hides the extra width taken by the canvas | |
.vr-background { | |
overflow: hidden; | |
} | |
// Set a height for the container – this is important. | |
// The value of the height is your design choice. I used a full-page height | |
.vr-container { | |
height: 100vh; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment