postcsslayouts
postcsslayouts copied to clipboard
Mobile browser address bar scroll issue
The 100vh for the background image causes the image to resize when the address bar hides or comes back. The result is mildly jarring. I've been poking around stack overflow for ideas: http://stackoverflow.com/questions/24944925/background-image-jumps-when-address-bar-hides-ios-android-mobile-chrome Perhaps this is just on my end. Just curious if anyone else can confirm.
In chrome lastest. Add following css it auto hide address bar (URL bar) went scroll!
html { height: 100vh; }
body { height: 100%; }
And this is why: https://developers.google.com/web/updates/2016/12/url-bar-resizing
Hope to helpful!