Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a video behind the graph #23

Closed
malani-art opened this issue Nov 10, 2021 · 2 comments
Closed

Adding a video behind the graph #23

malani-art opened this issue Nov 10, 2021 · 2 comments

Comments

@malani-art
Copy link

Hey! I believe this should be a quick question, simple solution, but I can't seem to add a video BEHIND the graph/a background video.

My code in Graph.js:

// Display
  width={width}
  height={height}
  backgroundColor={"#background-video"}
  showNavInfo={false}

In style.scss:

#background-video {
width: 100vw;
height: 100vh;
object-fit: cover;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: -1;

Despite making it backgroundColor and z-index -1, the video still appears in front of the graph.

Any ideas?

Thank you

@vasturiano
Copy link
Owner

@malani-art you'll probably want to make the globe component background transparent, like so:

backgroundColor="rgba(0,0,0,0)"

@malani-art
Copy link
Author

@vasturiano YES! It worked. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants