Forked from KarasAlina/gist:9ca4913ff3be309615731ef1cd502756
Created
February 13, 2018 18:13
-
-
Save zexeder/168b571e4e500aa82920d2dba352f4f9 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