jquery - How to show a div on top of the page in fixed position? -


i'm having issues keep loaded-content image on position:fixed.

my container loads hidden content clicking button, transition loaded content should slide right left. should on top.

the loaded-content <div class="sticky">cat image</div> should fixed on top. appreciated.

<html> <div class="container">many photos</div> <button>loaded-content comes in transform(translatex(0%)</button> </html>  <html> sticky image on top. <button>back button slides loaded content transform(translatex(100%)</button> </html> 

http://jsfiddle.net/6kpnn/

add css , specity div class on top

<style> .sticky  {   position: fixed;      top : 0px;   left : 0px;   width : (specify) ;   height : (specity here);   }  </style> 

Comments

Popular posts from this blog

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

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -