Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flickity

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flickity

Touch, responsive, flickable galleries

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
99K
decreased by-6.8%
Maintainers
1
Weekly downloads
 
Created
Source

Flickity

Touch, responsive, flickable galleries

I'm making a carousel/slider/gallery library!

Usage

Flickity works with a container element and a set of child cell elements

<div class="gallery">
  <div class="cell">...</div>
  <div class="cell">...</div>
  <div class="cell">...</div>
  ...
</div>
var flky = new Flickity( '.gallery', {
  // options, defaults listed

  cellSelector: undefined,
  // specify selector for cell elements

  cursorPosition: 0.5,
  // decimal value 0 - 1, representing where cells should align to
  // 0 is beginning (left) of gallery, 1 is end (right)

  friction: 0.2,
  // smaller number = easier to flick farther

  pixelPositioning: false,
  // sets positioning in pixels, rather than percentages
  // may be better for more precise positioning

  resizeBound: true,
  // listens to window resize events to adjust size & positions

  targetPosition: 0.5,
  // decimal value 0 - 1, representing what part of cells should align to
  // 0 is beginning (left) of the cell, 1 is end (right)

  wrapAround: false
  // at end of cells, wraps-around to first for infinite scrolling

});

License

Flickity is currently in development, v0. It is licensed GPL v3. With v1, Flickity will be dual-licensed: GPL, and a commercial license that exempts GPL.

Keywords

FAQs

Package last updated on 21 Dec 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc