A list of events shuffle triggers:
'loading.shuffle'
'done.shuffle'
'layout.shuffle'
'removed.shuffle'
$grid.on('done.shuffle', function() {
console.log('Finished initializing shuffle!');
});
// Initialize shuffle
$grid.shuffle( options );
$grid.on('removed.shuffle', function( evt, $collection, shuffle ) {
console.log( this, evt, $collection, shuffle );
});
Check out the demo at the top of the page, or its JavaScript file.