v2.0.0 - remove IE8 & 9 support
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