Skip to content

Instantly share code, notes, and snippets.

@nathanhornby
Last active June 20, 2016 22:36
Show Gist options
  • Save nathanhornby/b7effee110979e6158e3 to your computer and use it in GitHub Desktop.
Save nathanhornby/b7effee110979e6158e3 to your computer and use it in GitHub Desktop.
Magnific popup with velocity.js animation boilerplate
$.magnificPopup.open({
items: {
src: '#popup',
type: 'inline'
},
removalDelay: 400,
callbacks: {
open: function () {
this.content.velocity('transition.slideDownIn', {
duration: 400
});
},
beforeClose: function () {
this.content.velocity('transition.slideUpOut', {
duration: 400
});
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment