js slick carroussel
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user