小编Lau*_*hes的帖子

Isotope Pagination with load more

I used the isotope from the site http://isotope.metafizzy.co/ and implemented a method to use load more items by pressing a button. The problem is that when i hide the elements to display only the initial number of elements, my isotope grid won't scale. If i press the show more button, the layout accurately scales.

It seems that

  $grid.isotope('hideItemElements', $(this)).isotope('layout');
Run Code Online (Sandbox Code Playgroud)

but

 $grid.isotope('revealItemElements', $(this)).isotope('layout');
Run Code Online (Sandbox Code Playgroud)

效果很好。你能告诉我我在做什么错吗?

这是Codepan中的一个演示:http ://codepen.io/laura-chesches/pen/RKPWGo

jquery jquery-pagination jquery-isotope isotope

2
推荐指数
1
解决办法
3921
查看次数