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 9f79d9f441
Add sortedItems prop, fix Chrome bug (#351)
3 years ago
.github Upgrade to GitHub-native Dependabot (#345) 3 years ago
dist Add sortedItems prop, fix Chrome bug (#351) 3 years ago
docs Add sortedItems prop, fix Chrome bug (#351) 3 years ago
gulp Fix build scripts 3 years ago
src Add sortedItems prop, fix Chrome bug (#351) 3 years ago
test Add sortedItems prop, fix Chrome bug (#351) 3 years ago
.babelrc Fix build scripts 3 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 Add sortedItems prop, fix Chrome bug (#351) 3 years ago
.gitignore Add RTL feature (#337) 3 years ago
.npmrc Add npmrc file so that npm version doesn't fail. 6 years ago
.travis.yml Replace greenkeeper with dependabot 4 years ago
CONTRIBUTING.md Update release process steps 5 years ago
LICENSE Update license year 5 years ago
README.md Fix readme formatting 4 years ago
gulpfile.js Update eslint rules 5 years ago
index.d.ts Add sortedItems prop, fix Chrome bug (#351) 3 years ago
jest.config.js Move to jest for testing (#278) 5 years ago
package.json Add sortedItems prop, fix Chrome bug (#351) 3 years ago

README.md

Shuffle Build Status Dependency Status Dependabot Status 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.