Created
May 2, 2017 09:06
-
-
Save KarasAlina/9ca4913ff3be309615731ef1cd502756 to your computer and use it in GitHub Desktop.
Slick slider в magnific popup
This file contains hidden or 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
$('.open-popup-link-2').attr("data-effect","mfp-move-horizontal").magnificPopup({ | |
type:'inline', | |
removalDelay: 500, //delay removal by X to allow out-animation | |
callbacks: { | |
beforeOpen: function() { | |
this.st.mainClass = this.st.el.attr('data-effect'); | |
} | |
}, | |
midClick: true, | |
callbacks: {open: initSliders} | |
}); | |
function initSliders() { | |
$('.single-item').slick(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment