Use quicksand with non-fixed height/width container

643 Views Asked by At

Is there a way to use the Quicksand plugin (http://razorjack.net/quicksand/) with a container which is set to percentage dimensions rather than fixed? It functions fine but the animations don't work properly.

Thanks.

1

There are 1 best solutions below

0
On

I had the same problem and used some jQuery to fix the dimensions based on what they are on the screen

    var thumbHeight = $('.project-thumb').height(),
    thumbWidth = $('.project-thumb').outerWidth();                  

    $('.project-thumb').css({'max-width':thumbWidth, 'max-height':thumbHeight});