Flickity
Touch, responsive, flickable galleries
See flickity.metafizzy.co for complete docs and demos.
Install
Download
CDN
Link directly to Flickity files on cdnjs.
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/flickity/1.0.0/flickity.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/flickity/1.0.0/flickity.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/flickity/1.0.0/flickity.pkgd.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/flickity/1.0.0/flickity.pkgd.min.js"></script>
Package managers
Bower: bower install flickity --save
npm: npm install flickity --save
License
Commerical license
If you want to use Flickity to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Purchase a Flickity Commercial License at flickity.metafizzy.co
Open source license
If you are creating an open source application under a license compatible with the GNU GPL license v3, you may use Flickity under the terms of the GPLv3.
Read more about Flickity's license.
Usage
Flickity works with a container element and a set of child cell elements
<div class="gallery">
<div class="cell">...</div>
<div class="cell">...</div>
<div class="cell">...</div>
...
</div>
Options
var flky = new Flickity( '.gallery', {
accessibility: true,
autoPlay: false,
cellAlign: 'center',
cellSelector: undefined,
contain: false,
draggable: true,
freeScroll: false,
friction: 0.2,
initialIndex: 0,
percentPosition: true,
prevNextButtons: true,
pageDots: true,
resize: true,
rightToLeft: false,
setGallerySize: true,
watchCSS: false,
wrapAround: false
});
By Metafizzy