Skip to content

v2.0.0 - remove IE8 & 9 support

Compare
Choose a tag to compare
@desandro desandro released this 16 Aug 19:50
· 151 commits to master since this release

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 and data-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