I'm a developer intern, and at the moment I'm designing a few web pages for my company. The latest request has me puzzled, so any help would be much appreciated. Using next.js
We have a page, with content, and at the bottom, a button. The button is fixed, so it's always visible. We have another component, a simple footer with links in it. What I need to do is stick the footer below the button, but only when the page is fully scrolled down.
So: if the page is not fully scrolled down, only the button should be visible at the bottom. If it is fully scrolled down, the component with the footer should be visible below the button.
Any pointers/tutorials/links on how I could go about doing this?
Thank you!