Quicksand

Reorder and filter items with a nice shuffling animation.

Examples

Advanced: Custom attribute function

JavaScript

$(function() {
  $('#load-webbies a.button').click(function(e) {
    $.get( $(this).attr('href'), function(data) {
      $('.webbies').quicksand( $(data).find('li'),
        {
          adjustHeight: 'dynamic',
          attribute: function(v) {
            return $(v).find('img').attr('src');
          }
        });
    });	
  e.preventDefault();	
  });
});