Guest User

Untitled

a guest
Dec 28th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <script>
  3. $('.fotorama')
  4.     .on('fotorama:fullscreenenter fotorama:fullscreenexit', function (e, fotorama) {
  5.     if (e.type === 'fotorama:fullscreenenter') {
  6.         // Options for the fullscreen
  7.         fotorama.setOptions({
  8.             fit: 'contain'
  9.         });
  10.     } else {
  11.         // Back to normal settings
  12.         fotorama.setOptions({
  13.             fit: 'cover'
  14.         });
  15.     }
  16.     })
  17.     .fotorama();
  18. </script>
Advertisement
Add Comment
Please, Sign In to add comment