title: Html5 video background, keep center of video in center
body: <p>I am trying to keep a background video centered regardless of how big the user drags the video. It's currently cutting off the right side of the videos when i scroll smaller. Here's what I have:</p>
  
  <pre><code>&lt;section id="home"&gt;
       &lt;div class="video_shader"&gt;&lt;/div&gt;
          &lt;div class="video_contain"&gt;
              &lt;video autoplay="" loop="" poster="img/still.jpg" id="bgvid"&gt;
                &lt;source src="/realWebm.webm" type="video/webm" /&gt;
                &lt;source src="/realdeal.mp4" type="video/mp4"&gt;
                &lt;source src="/reaOg.ogv" type="video/ogg" /&gt;
              &lt;/video&gt;
          &lt;/div&gt;
  &lt;/section&gt;
  
  .video_contain{
  display: block;
  position: absolute;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  }
  
  video {
  min-width: 100%;
   min-height: 100%;
  z-index: -100;
  background-position: center;
  background-size: cover;
  }
  
  #home {
  width: 100vw;
  height: 100vh;
  display:block;
  position: relative;
  }
  </code></pre>
  
  <p>I would like the center of the video to be the center of the page always, even if the sides get cut off - that's actually ideal if it happens that way. Would appreciate any help. Thanks for reading!</p>