Last active
June 20, 2016 22:36
-
-
Save nathanhornby/b7effee110979e6158e3 to your computer and use it in GitHub Desktop.
Magnific popup with velocity.js animation boilerplate
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
$.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