Shuffle is a subclass of TinyEmitter. It emits an event when a layout happens and when elements are removed. The event names are Shuffle.EventType.LAYOUT
and Shuffle.EventType.REMOVED
.
shuffleInstance.on(Shuffle.EventType.LAYOUT, function () {
console.log('Things finished moving!');
});
shuffleInstance.on(Shuffle.EventType.REMOVED, function (data) {
console.log(this, data, data.collection, data.shuffle);
});
Check out the demo at the top of the page, or its JavaScript file.