The activeClass value is automatically added to the active slides class. This allows customized animations within the beforeStart and beforeEnd callback options.
first, last : Function - callbacks
When the circular option is set to false you have the option of doing something once the first or last slide has been reached via callbacks.
example
$('div.carousel').jCarouselLite({
btnNext: '.next',
btnPrev: '.prev',
first: function() {
alert('This is the first slide');
},
last: function() {
alert('This is the last slide');
}
});
I've also removed the automatic overflow:hidden on the div element as I feel that should be managed through CSS. I find myself constantly removing it from the plugin so why not try and cut out the middle man.
All changes have been documented within the readme. As this is my first pull request, let me know if there is anything I should have done differently.
Changes and new features:
activeClass
The
activeClass
value is automatically added to the active slides class. This allows customized animations within thebeforeStart
andbeforeEnd
callback options.first
,last
: Function - callbacksWhen the
circular
option is set to false you have the option of doing something once the first or last slide has been reached via callbacks.example
I've also removed the automatic overflow:hidden on the div element as I feel that should be managed through CSS. I find myself constantly removing it from the plugin so why not try and cut out the middle man.
All changes have been documented within the readme. As this is my first pull request, let me know if there is anything I should have done differently.
Thanks,
Jeff