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>
add css , specity div class on top
<style> .sticky { position: fixed; top : 0px; left : 0px; width : (specify) ; height : (specity here); } </style>
Comments
Post a Comment