How to append pagination content with masonry?

Hi,

I’m making a Kirby template using masonry and I’d like to add more articles using appended masonry method.

The question is, how can I pass the pagination content to the plugin?

Any ideas?

Thanks

I found a solution thanks to a hint from @bastianallgeier and some investigation.

I use the jQuery ‘get’ method to load the next page via Ajax and then filter the articles with ‘find’.

Finally I append the result to masonry and I call the masonry appended method.