jQuery(document).ready(function ($) { var $carrousel = document.querySelector('.carousel'); var flkty = new Flickity( $carrousel, { wrapAround: true, cellAlign: 'left', pageDots: false, contain: true, arrowShape: { x0: 30, x1: 60, y1: 50, x2: 65, y2: 50, x3: 35 } }); var $carrousel2 = document.querySelector('#carousel_posts'); var flkty = new Flickity( $carrousel2, { wrapAround: true, cellAlign: 'left', pageDots: false, contain: true }); var $carrousel3 = document.querySelector('.carousel_logos'); var flkty = new Flickity( $carrousel3, { wrapAround: true, cellAlign: 'left', pageDots: false, contain: true, autoPlay: true, groupCells: 4, arrowShape: { x0: 30, x1: 60, y1: 50, x2: 65, y2: 50, x3: 35 } }); });