JS Button Load more
<script src="../dist/btnloadmore.min.js"></script>
You need to do is call the plugin inside a $(document).ready function:
<div class="contents">
<div> 1 </div>
<div> 2 </div>
<div> 3 </div>
<div> 4 </div>
<div> 5 </div>
<div> 6 </div>
<div> 7 </div>
<div> 8 </div>
<div> 9 </div>
</div>
$(document).ready(function(){
$('.contents').btnLoadmore();
});
$('.contents').btnLoadmore({
showItem : 2,
whenClickBtn : 1,
textBtn : 'Load more ...'
});
showItem
: set number for show element.whenClickBtn
: set number for show element when click button.textBtn
: set text on click button.classBtn
: set custom class button .