You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Glen Cheney be410cc17f Change typings to use default export #214
If you're using CommonJS, you will need to `import * as Shuffle from 'shufflejs'`.
If you're using webpack and ts is configured to maintain `import`s, you can use it like `import Shuffle from 'shufflejs'`
5 years ago
.github Add issue template 7 years ago
dist Rebuild with updated dependencies #245. Remove some empty selectors. 6 years ago
docs Rebuild with updated dependencies #245. Remove some empty selectors. 6 years ago
gulp Update code style. 6 years ago
src Lazily test whether computed styles include padding #247 6 years ago
test Fix misspelled delimiter option #215 6 years ago
.babelrc Update dependencies. 6 years ago
.editorconfig Add .editorconfig file. Save all files again to be consistent. 11 years ago
.eslintignore Replace JSHint and JSCS with ESLint 7 years ago
.eslintrc.js Replace JSHint and JSCS with ESLint 7 years ago
.gitignore Add es module file. 6 years ago
.npmrc Add npmrc file so that npm version doesn't fail. 6 years ago
.travis.yml Update to node 10 in .travis.yml (#231) 6 years ago
CONTRIBUTING.md Update CONTRIBUTING.md 7 years ago
LICENSE Update license year. 6 years ago
README.md Remove duplicate link in README 7 years ago
gulpfile.js Remove symlink. GH pages can't build with it. 7 years ago
index.d.ts Change typings to use default export #214 5 years ago
package.json 5.2.0 6 years ago

README.md

Shuffle Build Status Dependency Status Greenkeeper badge NPM version

Categorize, sort, and filter a responsive grid of items.

npm install shufflejs

Docs and Demos

All found here

Usage (with ES6)

import Shuffle from 'shufflejs';

const shuffleInstance = new Shuffle(document.getElementById('grid'), {
  itemSelector: '.js-item',
  sizer: '.js-shuffle-sizer'
});

Inspiration

This project was inspired by Isotope and Packery.