Events

A list of events shuffle triggers:

Heads up! To receive the loading event, you must subscribe to it before initializing the plugin, otherwise it will fire before you have subscribed to it.

Get notified when shuffle is done with setup

$grid.on('done.shuffle', function() {
  console.log('Finished initializing shuffle!');
});

// Initialize shuffle
$grid.shuffle( options );

Do something when an item is removed

$grid.on('removed.shuffle', function( evt, $collection, shuffle ) {
  console.log( this, evt, $collection, shuffle );
});