css - Adding a see through/hole effect to a div with a png? -


when click #video_background or #nav div #infowrap fades in. find impossible keep exact same layout have #infowrap in lower right corner punch "hole" through div see #video_background through hole. have looked putting png down there in separate div or maybe put png background can't work. ideas? html:

<!doctype html> <html lang="en">     <head>         <meta charset="utf-8"/>         <meta name="description" content=""/>         <meta name="keywords"content=""/>         <title></title>         <link href="css/main.css" rel="stylesheet" type="text/css"/>         <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>     </head>       <body> <header>             <div id="nav">                 <p><a id="btn" href="#">+</a></p>             </div>         </header>         <div id="container">             <div id="infowrap">                 <div class="mainwrap">                      <div class="smallwrap">                         <p>mustache art party pug whatever mixtape, pork belly sriracha gentrify swag. try-hard selvage butcher high life, hashtag diy ennui.</p>                     </div>                      <div class="smallwrap">                         <p>mustache art party pug whatever mixtape, pork belly sriracha gentrify swag. try-hard selvage butcher high life, hashtag diy ennui.</p>                     </div>                      <div class="smallwrap">                         <p>mustache art party pug whatever mixtape, pork belly sriracha gentrify swag. try-hard selvage butcher high life, hashtag diy ennui.</p>                     </div>                      <div class="smallwrap">                         <p>mustache art party pug whatever mixtape, pork belly sriracha gentrify swag. try-hard selvage butcher high life, hashtag diy ennui.</p>                     </div>                 </div>             </div>         </div> <video id="video_background" src="vid/147000037.mp4" autoplay loop> <script>                 $('#video_background, #btn').on('click', function(){                     $('#nav').toggleclass('rotate');                 });         </script>             <script>         $(document).ready(function(){           $("#video_background, #nav").click(function(){             $("#infowrap").fadetoggle(250);           });         });         </script>     </body>       </html> 

my css:

* {     margin: 0;     padding: 0; }  body {     width: 100%;     height: 100%;     margin: 0;     font-family: "helveticaneue-ultralight","helveticaneue-light","helvetica neue",helvetica,arial,sans-serif; }  header {     z-index: 999;     display: block;     height: auto;     width: 100%;     position: fixed; }  header {     text-decoration: none;     font-size: 2.0em;     color: #000000; }  #nav {      position: relative;     float: right;     top: 15px;     right: 25px;     color: #000000; }  #video_background {     position: fixed;     top: 0;     left: 0;     bottom: 0;     right: 0;     z-index: -1000; }  #container {     height: 100%;     width: 100%;     display: block; }  #infowrap {     background: rgba(25,250,255,0.96);     z-index: 900;     display: none;     position: fixed;     top:10px;left:10px;right:10px;bottom:10px;     vertical-align: center; }  .mainwrap {     width: 540px;     height: 540px;     margin: 50px auto 0 auto; }  .smallwrap {     width: 250px;     height: 250px;     margin: 10px;     float: left;     position: relative; } 


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -