diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-08-29 01:52:43 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-08-29 01:52:43 +0200 |
| commit | f64b202f35e8034e4dfd1e8e9a2cfe6ffce172ee (patch) | |
| tree | 1efaced6ea53a36dda6b7e96215060738287240c /public/assets/site.js | |
| parent | b24aa6fa2c2929bede2e431b7b45261b4fc2185b (diff) | |
carousel
Diffstat (limited to 'public/assets/site.js')
| -rw-r--r-- | public/assets/site.js | 12 |
1 files changed, 11 insertions, 1 deletions
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(){ |
