Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $('.fotorama')
- .on('fotorama:fullscreenenter fotorama:fullscreenexit', function (e, fotorama) {
- if (e.type === 'fotorama:fullscreenenter') {
- // Options for the fullscreen
- fotorama.setOptions({
- fit: 'contain'
- });
- } else {
- // Back to normal settings
- fotorama.setOptions({
- fit: 'cover'
- });
- }
- })
- .fotorama();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement