background: transparent;
}
- html, body {
- /* To create our "window" onto the scene, we're going to slide the
- * SVG off the left-hand side of the screen, and we don't want
- * scroll bars to appear. */
- overflow: hidden;
- }
-
svg {
/* Set the height to 100% of the screen, which we'll keep; and the
* initial position to (0,0), which we're going to change
/******************************************/
function go() {
+ /* To create our "window" onto the scene, we're going to slide the
+ * SVG off the left-hand side of the screen, and we don't want
+ * scroll bars to appear. */
+ document.body.style.overflow = "hidden";
+
const svg = document.querySelector("svg");
const menu = document.getElementById("menu");
svg.style.display = "initial";