Isotope - Start with specific category rather than All elements

不羁的心 提交于 2019-12-12 23:33:21

问题


I have a small issue with the isotope plugin. When my web page is loaded, Isotope will display all the elements. I'd like to have it display a single category instead. How can i achieve it?

Thanks in advance for your help!


回答1:


Just supply a filter in the options of your initial call to isotope that will select only the items you want:

$('#someid').isotope({filter: '.someclassonMyCategoryElements'});

PS. It would help if you show your existing code, so we all have some context to work from :)



来源:https://stackoverflow.com/questions/16666776/isotope-start-with-specific-category-rather-than-all-elements

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!