MyGit

1.4.0

kenwheeler/slick

版本发布时间: 2015-01-29 12:24:16

kenwheeler/slick最新发布版本:1.8.0(2017-09-12 19:17:37)

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:

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

相关地址:原始地址 下载(tar) 下载(zip)

查看:2015-01-29发行的版本