Created
January 12, 2022 22:20
-
-
Save cccamuseme/bc7d68647d80311ecc7dd642f3a8d58e to your computer and use it in GitHub Desktop.
Wordpress Dual Slick Slider
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
jQuery(function($){ | |
$('.slick-center').slick({ | |
centerMode: true, | |
centerPadding: '25%', | |
slidesToShow: 1, | |
asNavFor: '.events-content', | |
responsive: [ | |
{ | |
breakpoint: 768, | |
settings: { | |
arrows: false, | |
centerMode: true, | |
centerPadding: '15%', | |
slidesToShow: 1, | |
asNavFor: '.events-content', | |
} | |
}, | |
{ | |
breakpoint: 480, | |
settings: { | |
arrows: false, | |
centerMode: true, | |
centerPadding: '40px', | |
slidesToShow: 1, | |
asNavFor: '.events-content', | |
} | |
} | |
] | |
}); | |
$('.events-content').slick({ | |
slidesToShow: 1, | |
slidesToScroll: 1, | |
arrows: false, | |
asNavFor: '.slick-center' | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment