I'm working on a wordpress template with tons of animation and I need to put an overflow hidden on the html tag but still be able to make the body tag scrollable on the Y axis.
On this website is doing exactly what i want to do : https://www.etq-amsterdam.com/
I'm looking for a way (jquery + css) to do the same thing but i can't figure it out.
Here's the basic stucture of my page:
<html>
<body>
<div class="content">
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</div>
</body>
</html>
I tried this but it doesn't work:
<html style="overflow: hidden;">
<body style="overflow-y: scroll;">
<div class="content">
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</div>
</body>
</html>
I think that like in the example i need to try a js or jquery solution.