From f64b202f35e8034e4dfd1e8e9a2cfe6ffce172ee Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 29 Aug 2017 01:52:43 +0200 Subject: carousel --- public/assets/site.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'public/assets/site.js') diff --git a/public/assets/site.js b/public/assets/site.js index f875fee..478cffc 100644 --- a/public/assets/site.js +++ b/public/assets/site.js @@ -51,7 +51,7 @@ function bind(){ var tag = $(this).html() filter_by_tag(tag) }) - var gallery = new Flickity( "#testimonials", { + new Flickity( "#testimonials", { cellSelector: '.testimonial', wrapAround: true, prevNextButtons: false, @@ -60,6 +60,16 @@ function bind(){ draggable: true, autoPlay: 5000, }) + + new Flickity( "#posts", { + cellSelector: '.cell', + wrapAround: true, + prevNextButtons: false, + pageDots: false, + setGallerySize: false, + draggable: true, + autoPlay: 5000, + }) } function build(){ $('.cell').each( function(){ -- cgit v1.2.3-70-g09d2