I am working with the jQuery isotope plugin and would like to display only items from a particular group when the page loads. Currently all of the items are displaying:
http://aproposstudio.com/category/work/
For example, on the link above, is there a way to load the page with the 'murals' displaying?
thanks.
The answer is quite easy:
$('#container').isotope({ filter: '.your-filter-name' });
Use this line in your code.
Refere this link: http://isotope.metafizzy.co/docs/filtering.html
So i think you just want to use the simple hide() and show() methods
If you use the classes applied to your html elements, you can easily select them and hide them with the following jQuery lines.
$(".project").hide()
$(".murals").show()
now, what this will do is 'hide' all of the projects, and show only the murals.
Does that make sense?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With