New features
- 🔔
groupCells
option - group cells together as individual slides. #22 - 🔔
adaptiveHeight
- change carousel height to selected cell. #11 - 🔔
bgLazyLoad
- lazyload background images. #173 - 🔔
scroll
event - do cool stuff like progress bars and parallax effects - 🔔
dragThreshold
- add more wiggle room for touch vertical scrolling. #138 - 🔔
selectCell
method - select a cell via element or selector string `flkty.selectCell('.cell-3'). #148
Breaking changes
jQuery events are namespaced with .flickity
.
// v1, will not work with v2
$carousel.on( 'staticClick', function() {...})
// v2, add .flickity namespace
$carousel.on( 'staticClick.flickity', function() {...})
Improvements & changes
- 🛠 Upgrade browser support and remove IE8, IE9, Android 2.3 support. #178. Remove dependencies: eventie, classie, doc-ready. Upgrade dependencies
- 🛠 replace EventEmitter with smaller EvEmitter.
- 🛠
select
event added in place of cellSelect.cellSelect
event will continue to work in v2. - 🛠 HTML initialization can be done with
data-flickity
HTML attribute. Flickity v2 is backwards compatible with previous code:js-flickity
class anddata-flickity-options
attribute. - 🍹 replace Grunt with gulp for tasks
- 🐞 fix cursor position of text inputs, textareas. #403
- 🐞 Prevent autoPlay on init with hidden page. #388
- 🛠 select closest cell with wrapAround. #113