Show bottom nav when end of page is reached

Hi I’ve managed to figure out how to hide my sticky header nav and footer nav while scrolling down then showing when scrolling up. But I can’t figure out how to show the footer nav again once the end of the page has been reached. Can someone help me with this? I can share my file if needed. Thanks!