Skip to content

Instantly share code, notes, and snippets.

@kvalood
Created September 18, 2018 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kvalood/e28f30ada72075a255a8e11f73a6be2e to your computer and use it in GitHub Desktop.
Save kvalood/e28f30ada72075a255a8e11f73a6be2e to your computer and use it in GitHub Desktop.
Magnific PopUP Fixed Header (fix)
/**
* 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