I get some problem with isotope. I try sort by data-attribute after filtering, but this not working. This is my demo:
http://ift.tt/1KcFcvM
I need get 12 items for the all time. If category smaller than 12 items than i show need count to 12 items random. Than i add random class to the random items and filtering for 2 parametrs (my items from category and random class).
$container.isotope({filter: filterValue+', .random' });
Than i try $container.isotope('updateSortData').isotope();
or i try add dynamicly getsort data to the object and sort by this new data, but this not works. How i can sortBy my data-attribute such as [data-filter] on my button or [data-category] in my items. (Bolder text this is items from current category, other - randomed items). Thx for answers and sorry for my eng.
Aucun commentaire:
Enregistrer un commentaire