I've been trying to get quicksand to work but it has been a pain and I haven't gotten anywhere.
I can't even get the simplest example to work: http://jsfiddle.net/KoenvE/wVA6y/
I've been searching and trying things out all day yesterday but with no success.
What am I doing wrong?
The js code I have right now:
//QuickSand
var $itemsHolder = $('ul.portfolioSorter');
var $itemsClone = $itemsHolder.clone();
var $filterClass = none;
$('ul.dropDownUL li').click(function(e) {
e.preventDefault();
$filterClass = $(this).attr('data-value');
if($filterClass == 'all'){
var $filters = $itemsClone.find('li');
} else {
var $filters = $itemsClone.find('li[data-type='+ $filterClass +']');
}
$itemsHolder.quicksand($filters, {
duration: 1000
});
});