npm slick-carousel 1.4.0
1.4 - BREAKING CHANGES (Please read)

latest releases: 1.9.0, 1.8.1, 1.8.0...
9 years ago

Whats up guys! Sorry I took a month off there for the holidays. I wanted to make it up to you, so lets check out whats new in Slick 1.4:

Settings

A few new settings have been added:

  • edgeFriction - This is an integer value for non-infinite carousels that adds resistance to edge drags. If you don't want resistance, set it to 1.
  • mobileFirst - When set to true, this setting makes your responsive breakpoints evaluate mobile first.
  • responsive - The responsive setting has been updated to accept a string value of "unslick" for the settings portion of a breakpoint declaration. This makes slick unslick at the given breakpoint. Note, you can't window shrink this, once you unslick, you are unslicked.
  • slide - The default value of the slide option has been changed to blank. This means that slick will use any direct children as slides, without having to specify which tag or selector to target.

Data Attribute Settings

Slick now has the ability to initialize via a data attribute. Provide a valid json object in the data-slick attribute, and you don't even need to initialize slick, it will initialize and apply the provided settings.

Methods

All methods are now called via the slick method. So you create slick with $.slick(options), but then you can also run $.slick('method', arguments). Check the docs for more detail.

Events

All callback methods are now deprecated. They have been replaced with event triggers. I added a few helpful ones too. So onAfterChange is now:

$('.your-element').on('afterChange', function(){
    // do stuff
});

CSS

slick.css has been forked into two different files. slick.css is now the core functional slick css file, while slick-theme.css and slick-theme.scss are the default styling.

Wrap up

So I've added some cool new shit, and I'm sorry about the breaking changes, but they are absolutely for the better moving forward. Like any set of new features, I'm sure somebody will find the perfect combination of settings to make this thing shit the bed, so I'll make sure I'm around to get 1.4.1 out the door when they do. I'm looking forward to adding some cool new, non-breaking stuff in the near future, so keep your eyes peeled for some optimizations and improvements. Thanks so much!

aww yeah

Don't miss a new slick-carousel release

NewReleases is sending notifications on new releases.