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?
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
Post a Comment