title: Pan Zoom JQuery functionality
body: <p><strong>HTML and Javascript</strong></p>
  
  <pre><code>&lt;section&gt;
       &lt;h1&gt;Panning and zooming with CSS3&lt;/h1&gt;
  
      &lt;div class="parent"&gt;
          &lt;div class="panzoom"&gt;
              &lt;img src="image1" width="400" height="400"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="buttons"&gt;
          &lt;button class="zoom-in"&gt;Zoom In&lt;/button&gt;
          &lt;button class="zoom-out"&gt;Zoom Out&lt;/button&gt;
          &lt;input type="range" class="zoom-range"&gt;
          &lt;button class="reset"&gt;Reset&lt;/button&gt;
      &lt;/div&gt;
      &lt;script&gt;
          (function() {
              var $section = $('section').first();
              $section.find('.panzoom').panzoom({
                  $zoomIn: $section.find(".zoom-in"),
                  $zoomOut: $section.find(".zoom-out"),
                  $zoomRange: $section.find(".zoom-range"),
                  $reset: $section.find(".reset")
              });
          })();
      &lt;/script&gt;
  &lt;/section&gt;
  </code></pre>
  
  <p>I'm using the Pan Zoom plugin.</p>
  
  <pre><code>https://github.com/timmywil/jquery.panzoom
  </code></pre>
  
  <p>How to limit the Zoomout functionality. I meant that I want to zoomout the image to certain size of the image like 100 px.</p>
  
  <p><strong>Demo</strong>
  <a href="http://timmywil.github.io/jquery.panzoom/demo/#inverted-contain" rel="nofollow">http://timmywil.github.io/jquery.panzoom/demo/#inverted-contain</a></p>
  
  <p>I have tried the <code>Inverted containment within the parent element (to hide what's behind)</code>
   from the Demo. But for me its not working. Please help.</p>