PHPackages                             soerenkroell/composer-slick - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. soerenkroell/composer-slick

ActiveComponent[Utility &amp; Helpers](/categories/utility)

soerenkroell/composer-slick
===========================

A composer package for the last carousel you'll ever need

1.5.5(11y ago)013.6kMITJavaScript

Since Jul 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/kroell/composer-slick)[ Packagist](https://packagist.org/packages/soerenkroell/composer-slick)[ Docs](https://github.com/kenwheeler/slick)[ RSS](/packages/soerenkroell-composer-slick/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

slick
-----

[](#slick)

*the last carousel you'll ever need*

#### Demo

[](#demo)

[http://kenwheeler.github.io/slick](http://kenwheeler.github.io/slick/)

#### CDN

[](#cdn)

CDN hosted slick is a great way to get set up quick:

In your `` add:

```

// Add the slick-theme.css if you want default styling

```

Then, before your closing `` tag add:

```

```

#### Package Managers

[](#package-managers)

```
//Bower
bower install --save slick.js

//NPM
npm install slick-carousel

```

#### Contributing

[](#contributing)

PLEASE review CONTRIBUTING.markdown prior to requesting a feature, filing a pull request or filing an issue.

### Data Attribute Settings

[](#data-attribute-settings)

In slick 1.5 you can now add settings using the data-slick attribute. You still need to call $(element).slick() to initialize slick on the element.

Example:

```

  1
  2
  3
  4
  5
  6

```

#### Settings

[](#settings)

OptionTypeDefaultDescriptionaccessibilitybooleantrueEnables tabbing and arrow key navigationautoplaybooleanfalseEnables auto play of slidesautoplaySpeedint3000Auto play change intervalcenterModebooleanfalseEnables centered view with partial prev/next slides. Use with odd numbered slidesToShow counts.centerPaddingstring'50px'Side padding when in center mode. (px or %)cssEasestring'ease'CSS3 easingcustomPagingfunctionn/aCustom paging templates. See source for use example.dotsbooleanfalseCurrent slide indicator dotsdotsClassstring'slick-dots'Class for slide indicator dots containerdraggablebooleantrueEnables desktop draggingeasingstring'linear'animate() fallback easingedgeFrictioninteger0.15Resistance when swiping edges of non-infinite carouselsfadebooleanfalseEnables fadearrowsbooleantrueEnable Next/Prev arrowsappendArrowsstring$(element)Change where the navigation arrows are attached (Selector, htmlString, Array, Element, jQuery object)appendDotsstring$(element)Change where the navigation dots are attached (Selector, htmlString, Array, Element, jQuery object)mobileFirstbooleanfalseResponsive settings use mobile first calculationprevArrowstring (htmljQuery selector)object (DOM nodenextArrowstring (htmljQuery selector)object (DOM nodeinfinitebooleantrueInfinite loopinginitialSlideinteger0Slide to start onlazyLoadstring'ondemand'Accepts 'ondemand' or 'progressive' for lazy load techniquepauseOnHoverbooleantruePauses autoplay on hoverpauseOnDotsHoverbooleanfalsePauses autoplay when a dot is hoveredrespondTostring'window'Width that responsive object responds to. Can be 'window', 'slider' or 'min' (the smaller of the two).responsiveobjectnullObject containing breakpoints and settings objects (see demo). Enables settings sets at given screen width. Set settings to "unslick" instead of an object to disable slick at a given breakpoint.rowsint1Setting this to more than 1 initializes grid mode. Use slidesPerRow to set how many slides should be in each row.slidestring''Slide element queryslidesPerRowint1With grid mode intialized via the rows option, this sets how many slides are in each grid row. dverslidesToShowint1\# of slides to show at a timeslidesToScrollint1\# of slides to scroll at a timespeedint300Transition speedswipebooleantrueEnables touch swipeswipeToSlidebooleanfalseSwipe to slide irrespective of slidesToScrolltouchMovebooleantrueEnables slide moving with touchtouchThresholdint5To advance slides, the user must swipe a length of (1/touchThreshold) \* the width of the slider.useCSSbooleantrueEnable/Disable CSS TransitionsvariableWidthbooleanfalseDisables automatic slide width calculationverticalbooleanfalseVertical slide directionverticalSwipingbooleanfalseChanges swipe direction to verticalrtlbooleanfalseChange the slider's direction to become right-to-leftwaitForAnimatebooleantrueIgnores requests to advance the slide while animatingzIndexnumber1000Set the zIndex values for slides, useful for IE9 and lower### Events

[](#events)

In slick 1.4, callback methods have been deprecated and replaced with events. Use them before the initialization of slick as shown below:

```
// On swipe event
$('.your-element').on('swipe', function(event, slick, direction){
  console.log(direction);
  // left
});

// On edge hit
$('.your-element').on('edge', function(event, slick, direction){
  console.log('edge was hit')
});

// On before slide change
$('.your-element').on('beforeChange', function(event, slick, currentSlide, nextSlide){
  console.log(nextSlide);
});
```

EventParamsDescriptionafterChangeevent, slick, currentSlideAfter slide change callbackbeforeChangeevent, slick, currentSlide, nextSlideBefore slide change callbackbreakpointevent, slick, breakpointFires after a breakpoint is hitdestroyevent, slickWhen slider is destroyed, or unslicked.edgeevent, slick, directionFires when an edge is overscrolled in non-infinite mode.initevent, slickWhen Slick initializes for the first time callbackreInitevent, slickEvery time Slick (re-)initializes callbacksetPositionevent, slickEvery time Slick recalculates positionswipeevent, slick, directionFires after swipe/drag#### Methods

[](#methods)

Methods are called on slick instances through the slick method itself in version 1.4, see below:

```
// Add a slide
$('.your-element').slick('slickAdd',"");

// Get the current slide
var currentSlide = $('.your-element').slick('slickCurrentSlide');
```

This new syntax allows you to call any internal slick method as well:

```
// Manually refresh positioning of slick
$('.your-element').slick('setPosition');
```

MethodArgumentDescriptionslickoptions : objectInitializes SlickunslickDestroys SlickslickNextTriggers next slideslickPrevTriggers previous slideslickPausePause AutoplayslickPlayStart AutoplayslickGoToindex : int, dontAnimate : boolGoes to slide by index, skipping animation if second parameter is set to trueslickCurrentSlideReturns the current slide indexslickAddelement : html or DOM object, index: int, addBefore: boolAdd a slide. If an index is provided, will add at that index, or before if addBefore is set. If no index is provided, add to the end or to the beginning if addBefore is set. Accepts HTML StringslickRemoveindex: int, removeBefore: boolRemove slide by index. If removeBefore is set true, remove slide preceding index, or the first slide if no index is specified. If removeBefore is set to false, remove the slide following index, or the last slide if no index is set.slickFilterfilter : selector or functionFilters slides using jQuery .filter syntaxslickUnfilterRemoves applied filterslickGetOptionoption : string(option name)Gets an option value.slickSetOptionoption : string(option name), value : depends on option, refresh : booleanSets an option live. Set refresh to true if it is an option that changes the display#### Example

[](#example)

Initialize with:

```
$(element).slick({
  dots: true,
  speed: 500
});
```

Destroy with:

```
$(element).unslick();
```

#### Sass Variables

[](#sass-variables)

VariableTypeDefaultDescription$slick-font-pathstring"./fonts/"Directory path for the slick icon font$slick-font-familystring"slick"Font-family for slick icon font$slick-loader-pathstring"./"Directory path for the loader image$slick-arrow-colorcolorwhiteColor of the left/right arrow icons$slick-dot-colorcolorblackColor of the navigation dots$slick-dot-color-activecolor$slick-dot-colorColor of the active navigation dot$slick-prev-characterstring'\\2190'Unicode character code for the previous arrow icon$slick-next-characterstring'\\2192'Unicode character code for the next arrow icon$slick-dot-characterstring'\\2022'Unicode character code for the navigation dot icon$slick-dot-sizepixels6pxSize of the navigation dots#### Dependencies

[](#dependencies)

jQuery 1.7

#### License

[](#license)

Copyright (c) 2014 Ken Wheeler

Licensed under the MIT license.

Free as in Bacon.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4019d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/033fd7cba5f090e3429c99f50eaf49920469cddc8919af402c127771ebcf03cc?d=identicon)[kroell](/maintainers/kroell)

---

Top Contributors

[![kroell](https://avatars.githubusercontent.com/u/1874307?v=4)](https://github.com/kroell "kroell (3 commits)")

### Embed Badge

![Health badge](/badges/soerenkroell-composer-slick/health.svg)

```
[![Health](https://phpackages.com/badges/soerenkroell-composer-slick/health.svg)](https://phpackages.com/packages/soerenkroell-composer-slick)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
