JQuery Plugin That Enables Infinite Scrolling With AJAX | infinityScroll.js

infinityScroll.js is a very simple infinity scroll extension that loads more data while the user scrolls down and displays a custom message after all the content is displayed.

infinite scroll jquery, jquery infinite scroll pagination, jquery infinite scroll ajax, infinite scrolling javascript, infinite scroll vanilla js, infinite scroll example

How to make use of it:

1. Include the stylesheet infinityScroll.css and JavaScript infinityScroll.js on the page.

<link rel="stylesheet" href="/path/to/dist/infinityScroll.css" />
<script src="/path/to/cdn/jquery.min.js"></script>
<script src="/path/to/dist/infinityScroll.min.js"></script>

2. Create a container element in which to present the data.

<div id="element"></div>

3. Select your content to be displayed on the page when you scroll down. It can be HTML, JSON, XML, etc.

<!-- data.html -->
<div class="is-load-list">
  <img src="1.jpg" alt="">
  <p>Content 1</p>
</div>
<div class="is-load-list">
  <img src="2.jpg" alt="">
  <p>Content 2</p>
</div>
<div class="is-load-list">
  <img src="3.jpg" alt="">
  <p>Content 3</p>
</div>
...

4. Configure the infinityScroll plugin.

$('#element').infinityScroll({
  type : "html",
  data : "load.html",
  loadListClass : "is-load-list",
})

5. Specify the number of items to load in the init.

$('#element').infinityScroll({
  type : "html",
  data : "load.html",
  loadListClass : "is-load-list",
  renderInit : 2
})

6. Customize the message to display after the last items have been submitted.

$('#element').infinityScroll({
  type : "html",
  data : "load.html",
  loadListClass : "is-load-list",
  scrollEndMessage : "read all contents!",
})

Easy Infinite Scroll With jQuery And AJAX, infinityScroll.js Plugin/Github, infinite scroll load more button jquery


See Demo And Download

Official Website(kosukenemy): Click Here

This superior jQuery/javascript plugin is developed by kosukenemy. For extra Advanced usage, please go to the official website.

Related Posts

Input-Values-Using-Mouse-Drag

Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…

simple-parallax-scrolling-js

Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…

Convert-Form-Data-to-JSON

How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…

editable-html-table-using-javascript

A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…

jquery.youtube-background

Simple jQuery Plugin for Embedding YouTube Videos As Cover Background

jquery.youtube-background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…