Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
  <script src="http://timmywil.github.io/jquery.panzoom/dist/jquery.panzoom.js"></script>
<body>
  <div id="wrapper">
    <img id="curPage" src="http://placehold.it/2000x2800/3f3f3f/000000" width="2000" height="2800">
  </div>
</body>
</html>
 
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}
#wrapper {
  background: gray;
  width: 100%;
  height: 100%;
}
#curPage {
  height: 2800px;
  width: auto;
}
 
$(document).ready(function() {
$("#curPage").panzoom({
  increment: 0.2,
  minScale: 0.1,
  maxScale: 10.0,
  startTransform: 'scale(1)',
  
});
  
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers