Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
.npmignore
LICENSE
bower.json
index.js
index.mjs
package.json
readme.md
test.js

readme.md

Mixin friendly pager useful for setting up rotating slideshows

Setup

# Fetch latest from github
npm i thewhodidthis/picknick

Usage

import createPager from 'picknick'

const pager = createPager(12, 0, console.log)

// Decrement, prints 0
pager.prev()

// Increment, prints 1
pager.next()