desandro / masonry

:love_hotel: Cascading grid layout plugin
https://masonry.desandro.com
16.38k stars 2.11k forks source link

How to display a certain number of items. #1052

Closed nikomaxia closed 5 years ago

nikomaxia commented 6 years ago

Hi Desandro, I have build a bootstrap-4 page with a big number of cards. I have create a jquery script with .slice method to display only 6 cards on page load. Below the cards is a button. Every time you click the button another 6 items displayed... The problem is when I import masonry.js the whole number of cards are displayed on page load and the button is not working at all. Is there a way via masonry.js to display only 6 cards on page load and use the button to display another 6 cards every time is clicked? I'm trying to understand the appended method on your website but I cannot make it.

Thanks in advanced.

desandro commented 6 years ago

I'm sorry to see you're having trouble with Masonry. Could you provide a reduced test case? See Submitting Issues in the contributing guidelines.