Hello dear Shopify community!
I was on the website CodePen and was looking for a fancy idea on how to announce the next product launch to my customers. I decided to use a red wavy movement. So I created a custom.css and a custom.js where I copied in the code. And lo and behold, it works!
The problem is that I would like to have the ROOT contrainer smaller, I would prefer to fix the height. I have already tried to change it with CSS but without success. The developer tool shows that a canvas is being created, but with so much javascript code I can’t see through it.
My question:
Is there a way to edit the height of the root container without editing the javascript?
I have uploaded a short video, and also linked under below the CodePen link if anyone would like to take a look<3.
I am grateful for any answer.
Used theme: DAWN
CodePen: https://codepen.io/sfi0zy/pen/VwqwPZz
Canvas:
My current HTML:
My current CSS:
- {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
overflow: hidden;
background: #eeeeee;
}
.banner {
width: 100%;
height: 10rem;
background-color: red;
}
.root {
width: 100%;
height: 20vh;
}
.full-screen-3d-example {
opacity: 0;
transition: opacity 1s ease-out;
}
.full-screen-3d-example.-loaded {
opacity: 1;
}