Categorize, sort, and filter a responsive grid of items.
npm install shufflejs --save
Shuffle is also available on bower as shufflejs
.
var Shuffle = require('shufflejs');
var myShuffle = new Shuffle(document.getElementById('grid'), {
itemSelector: '.js-item',
sizer: '.js-shuffle-sizer'
});
Shuffle 4 removes jQuery as a dependency and is written in ES6.