You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to set .scene-container to width/height of 100vw/100vh?
The text was updated successfully, but these errors were encountered:
ralyodio
changed the title
Is there a way to set #scene-container to width/height of 100vw/100vh?
Is there a way to set .scene-container to width/height of 100vw/100vh?
Apr 29, 2024
@ralyodio the .width and .height methods are not CSS properties, they can only accept px units.
However, 100vw is equivalent to .width(window.innerWidth), which is the default. Same for height.
No it should not be an array. Those methods take a single numeric argument. If you're reading it from the docs, the square brackets are there to indicate that the argument is optional. You can invoke it as a "getter" of the current width, without any arguments.
Is there a way to set .scene-container to width/height of 100vw/100vh?
The text was updated successfully, but these errors were encountered: