1
I have a site that in css, have these statements for the body:
body {
background: #fab52d;
font-family: Montserrat, Helvetica, Arial, sans-serif;
font-size: 1.6rem;
color: #FFFFFF;
overflow: hidden;
}
In the following link, you can see how the site is (Landing page). Its height is fixed at 100vh.
http://www.jogodavelhadigital.com.br/alvorada-iii/site/
However, I wanted you to add a class to the body when the user tries to scroll the page down, and remove that class when trying to scroll up (of course he will not succeed, because the page has no scroll, the addition and removal of class would give the effect of page exchange).
I tried something with jquery like:
$(window).scroll(function() {
// código aqui
}
However, this jquery only works when the overflow is not Hidden.
There is something I could do to achieve the desired effect?
Search the site before. That’s a pretty basic question, so there’s a chance they answered before.
– Not The Real Hemingway