Created
September 18, 2018 14:59
-
-
Save kvalood/e28f30ada72075a255a8e11f73a6be2e to your computer and use it in GitHub Desktop.
Magnific PopUP Fixed Header (fix)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Author - https://github.com/dimsemenov/Magnific-Popup/issues/350#issuecomment-33362275 | |
*/ | |
$('#gallery').magnificPopup({ | |
delegate: 'a', | |
type: 'image', | |
gallery: { | |
enabled:true | |
}, | |
callbacks: { | |
open: function() { | |
$nav.css({'overflow-y': 'scroll'}); | |
}, | |
close: function() { | |
$nav.css({'overflow-y': 'visible'}); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment