I'm working on a website where I implement 100vh landing screen, but bottom navigation bar (phone's navigation with home, back options) hides the bottom of my content. I'm already using JavaScript window.innerHeight to make browser take into account space taken by address bar, but this doesn't seem to take into consideration phone's on screen UI. I'll be grateful for any ideas on how to solve this issue, thanks :)
JS
let vh = window.innerHeight * 0.01;
document.documentElement.style.setProperty('--vh', ${vh}px);
window.addEventListener('resize', () => {
let vh = window.innerHeight * 0.01;
document.documentElement.style.setProperty('--vh', ${vh}px);
});
CSS height: 100vh; height: calc(var(--vh, 1vh) * 100);
As a part of design I'm implementing an animated arrow linking to the beginning of page's content.
You can check it out on http://jakubsramek.com/cs/