showing results for - "load more javascript scroll"
Sophie
09 Jan 2017
1$(function(){
2    $('#content').scrollPagination({
3        'url': 'democontent.json',
4        'data': {
5            'page': 1,
6            'size': 15,
7        },
8        'scroller': $(window),
9        'autoload':false,
10        'heightOffset': 0,
11        'loading': "#loading",
12        'loadingText': 'click to loading more.',
13        'loadingNomoreText': 'No more.',
14        'manuallyText': 'click to loading more.',
15        'before': function(){
16            $(this.loading).fadeIn();
17        },
18        'after': function(elementsLoaded){
19            $(this.loading).fadeOut();
20            $(elementsLoaded).fadeInWithDelay();
21        }
22    });
23});