Socket
Socket
Sign inDemoInstall

slick-carousel

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    slick-carousel

the last carousel you'll ever need


Version published
Weekly downloads
732K
decreased by-15.62%
Maintainers
1
Install size
1.11 MB
Created
Weekly downloads
 

Readme

Source

slick

the last carousel you'll ever need

Demo

http://kenwheeler.github.io/slick

Options
OptionTypeDefaultDescription
accessibilitybooleantrueEnables tabbing and arrow key navigation
autoplaybooleanfalseEnables auto play of slides
autoplaySpeedint3000Auto play change interval
cssEasestring'ease'CSS3 easing
dotsbooleanfalseCurrent slide indicator dots
draggablebooleantrueEnables desktop dragging
easingstring'linear'animate() fallback easing
fadebooleanfalseEnables fade
arrowsbooleantrueEnable Next/Prev arrows
infinitebooleantrueInfinite looping
onBeforeChangemethodnullBefore slide change callback
onAfterChangemethodnullAfter slide change callback
pauseOnHoverbooleantruePauses autoplay on hover
responsiveobjectnullBreakpoint triggered settings
slidestring'div'Slide element query
slidesToShowint1# of slides to show at a time
slidesToScrollint1# of slides to scroll at a time
speedint300Transition speed
swipebooleantrueEnables touch swipe
touchMovebooleantrueEnables slide moving with touch
touchMoveThresholdint5Swipe distance threshold
verticalbooleanfalseVertical slide direction
Methods
MethodArgumentDescription
slick()options : objectInitializes Slick
unslick()Destroys Slick
slickNext()Triggers next slide
slickPrev()Triggers previous slide
slickPause()Pause Autoplay
slickPlay()Start Autoplay
slickGoTo()index : intGoes to slide by index
slickAdd()element : html or DOM objectAdds a slide. Accepts HTML String
slideRemove()index: intRemoves a slide by index
slickFilter()filter : selector or functionFilters slides using jQuery .filter syntax
slickUnfilter()Removes applied filter
Example

Initialize with:

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

Destroy with:

$(element).unslick();
Dependencies

jQuery 1.7

License

Copyright (c) 2014 Ken Wheeler

Dual licensed under the MIT and GPL licenses.

Free as in Bacon.

Keywords

FAQs

Last updated on 31 Mar 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc