_onmouseclick Posted June 30, 2019 Share Posted June 30, 2019 I want do to a simple thing : I have a two scrolls website, and I want to hide the right part when the scroll is at the maximum on the right part. SO I used document.onscroll = function() { if (window.innerHeight + window.scrollY > document.body.offsetHeigh... but the right part is hidden when the scroll is at his max on left part. How Can I do ? the code pen with the precise problem : https://codepen.io/marie-fran-oise-talbot/pen/LKeqBE thank youuuuu Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now