YUI().use('gallery-yuisand', function(Y) {
Y.one('#sort').on('click', function(e) {
yuisand = new Y.YUISand();
yuisand.on( 'complete', function() {
YUI().use('anim', function(Y) {
anim = new Y.Anim({
node : '#finished',
duration : .5
});
anim.set( 'to', { opacity : .75 } );
anim.run();
anim.on( 'end', function() {
anim.set( 'to', { opacity : 0 } );
anim.run();
})
});
})
e.preventDefault();
})
})