javascript - Full Screen Overlay on Link Click -
a client has requested project page has similar feel this. whereby, click '+' button display project information, in full-screen overlay window.
i'm familiar html / css & while have dabbled php have never touched js. , i'm pretty sure developer of above site has used here.
so, questions are:
- how achieve outcome (or close it)? note - site being developed on wp. i'm not sure if changes anything.
- once done, how add project information overlay?
i created small pen demonstrating how can achieve using css , little plain javascript:
https://codepen.io/tauka/pen/ojeqze
.overlay { position: fixed; top: 0; left: 0; width: 0; height: 100%; background-color: green; transition: width 2s ease-out; overflow-x:hidden; }
important moments:
- .overlay must have width: 0 , position: fixed
- .content must have width in absolute measure, i.e. px/rem/em
hope helps!
wiki
Comments
Post a Comment