I'm creating a portfolio webpage and using a modal to display each piece of my work, the modal itself is scrollable as I've got a few assets to show. I'm facing two issues:
When the modal is open and you scroll all the way down, then when you close the modal the main home page has also scrolled down, how do you stop the home page from scrolling when the modal is open?
When I revisit a modal that has been already visited and scrolled all the way down and reopened, the modal opens again with the page scrolled down. So you have to scroll up when revisiting a Modal. Basically the Modal stays in the same position as it was when it was last visited. Is there a way for the Modal to always open starting at the top of the page
I've shared the link to my site, note only the first two boxes are currently working (Fuel & Logos) at the moment as I'm stuck with these two issues.
Any help would be great! Thanks