eduardomb / scroll-up-bar

The scroll up bar plugin (jQuery) hides the top bar when scrolling down, and show it when scrolling up. It's specially useful on mobile interfaces to save some precious space.
MIT License
613 stars 63 forks source link

Navbar not actually position:fixed if inside parent that is being transformed #21

Open kenricf opened 9 years ago

kenricf commented 9 years ago

Hey, love this plugin. Thought I'd save some headaches and mention that the navbar will be positioned fixed relative to it's parent if the parent has transform styles. So, instead of being fixed to the top of the viewport, it will be fixed to the top of the parent and may not even appear when scrolling up.

For instance:

More reading: http://stackoverflow.com/questions/15194313/webkit-css-transform3d-position-fixed-issue http://codepen.io/markdebeer/pen/qrBDm http://davidwalsh.name/translate3d