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:

  1. how achieve outcome (or close it)? note - site being developed on wp. i'm not sure if changes anything.
  2. 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

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -