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

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? -