Created
August 30, 2017 06:50
-
-
Save ssudoku/63ddb5faafb254b4ba0388823d2af14d 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