Skip to content

Instantly share code, notes, and snippets.

@ssudoku
Created August 30, 2017 06:50
Show Gist options
  • Save ssudoku/63ddb5faafb254b4ba0388823d2af14d to your computer and use it in GitHub Desktop.
Save ssudoku/63ddb5faafb254b4ba0388823d2af14d to your computer and use it in GitHub Desktop.
a-frame pano viewer css
// 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