javascript - Fixed position on a hidden Content should stick to top -


translate3d(0%, 0px, 0px); brakes position fixed. on demo should see content on click opens fine should stuck top in position fixed.

so, scrolling down container (placekitten images) click button, hidden content should open google image stuck on top.

<html> <div class="container">placekitten images</div> <button>loaded-content comes in translate3d(0%, 0px, 0px)</button> </html>  <html> <div class="sticky">google  image on top.</div> <button>back button slides loaded content translate3d(100%, 0px, 0px)</button> </html> 

translate3d brakes position fixed!!! how can fix this?

http://jsfiddle.net/j7p99/

possible repeat

in summation, translate3d creates new local coordinate system, overrides position attribute have set!

in essence, instead of being fixed viewport want (in case stay top) fixed the translated element!

i able find this however, fixed top bar translate3d(0,0,0)

i hope helps!


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -