Jump to content

at max right scroll > hide right part not left part


_onmouseclick

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...