Skip to content

Instantly share code, notes, and snippets.

@COLABORATI
Forked from nathanhornby/magnific-velocity.js
Created June 20, 2016 22:36
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 COLABORATI/f48c060782c0710137f76cfe0d36afb6 to your computer and use it in GitHub Desktop.
Save COLABORATI/f48c060782c0710137f76cfe0d36afb6 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