Skip to content

Instantly share code, notes, and snippets.

@ssudoku
Created August 30, 2017 06:47
Show Gist options
  • Save ssudoku/1d46e4f692d633ed4ddcab4052001cdb to your computer and use it in GitHub Desktop.
Save ssudoku/1d46e4f692d633ed4ddcab4052001cdb to your computer and use it in GitHub Desktop.
css for the overlaying content
.vr-container .vr-overlay-content {
position: absolute;
z-index: 1; // positions the content over the viewer
pointer-events: none; // this is important as it enables your interactions on the overlay to be detected by a-frame
}
.vr-overlay-content .action {
pointer-events: initial; // enables clicks on the button, which was disabled by pointer-events: none
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment