You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this. I'm experimenting now and learning the ins-and-outs of scrolling. The readme includes this tip:
Avoid using viewport height (vh) in your CSS because scrolling up and down constantly triggers vh to change, which will also trigger a window resize.
I presume you're referring to how mobile browsers show/hide the navbar in the app when the user scrolls "back up". Is that a correct assumption? Do you have any suggestions for workarounds? I use vh quite a bit and I'm struggling to imagine a good alternative that scales with the user's device.
For example, if I want a block to sit stickied in the middle of the screen while other stuff scrolls by, wouldn't I need to use 100vh on the parent container? Here's a simple example:
Thanks for this. I'm experimenting now and learning the ins-and-outs of scrolling. The readme includes this tip:
I presume you're referring to how mobile browsers show/hide the navbar in the app when the user scrolls "back up". Is that a correct assumption? Do you have any suggestions for workarounds? I use vh quite a bit and I'm struggling to imagine a good alternative that scales with the user's device.
For example, if I want a block to sit stickied in the middle of the screen while other stuff scrolls by, wouldn't I need to use
100vh
on the parent container? Here's a simple example:https://codepen.io/natewr/pen/WNaWvoL
The text was updated successfully, but these errors were encountered: