js slick carroussel

This commit is contained in:
2023-06-28 18:36:14 +02:00
parent f0c074426d
commit e7dcefbcae
3 changed files with 28 additions and 209 deletions
+26 -1
View File
@@ -162,8 +162,33 @@ jQuery(function($) {
// slideshow home // marche pas. attention ai rajouter des class dans template views.view.html.twig et views-view-actus-blocks-pages--block-1.html.twig
(function($, window) {
console.log('hello')
$('.slidshow-home2').slick({slidesToShow: 1,});
$(document).ready(function(){
if ('.view-id-actus_blocks_pages view-display-id-block_1'){
$('.slidshow-home2').slick({
slidesToShow: 1,
slidesToScroll: 1,
dots: true,
arrows: true,
centerMode: true,
centerPadding: '200px',
responsive: [
{
breakpoint: 800,
settings: {
centerPadding: '0',
adaptiveHeight: true
}
}]
});
}
});
// $('.slidshow-home2').slick(
// {slidesToShow: 1,}
// );
console.log('salut slick');
})(jQuery, window);