All Projects → pklauzinski → Jscroll

pklauzinski / Jscroll

An infinite scrolling plugin for jQuery.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Jscroll

Ngx Ui Scroll
Infinite/virtual scroll for Angular
Stars: ✭ 145 (-86.62%)
Mutual labels:  scrolling, infinite-scroll
Jquery Lockfixed
jQuery lockfixed plugin
Stars: ✭ 69 (-93.63%)
Mutual labels:  jquery-plugin, scrolling
Django Infinite Scroll Pagination
🌀 Pagination based on the seek method / keyset paging / offset-less pagination
Stars: ✭ 90 (-91.7%)
Mutual labels:  scrolling, infinite-scroll
Jquery Scrolllock
Locks mouse wheel scroll inside container, preventing it from propagating to parent element
Stars: ✭ 109 (-89.94%)
Mutual labels:  jquery-plugin, scrolling
NoobScroll
A lightweight jQuery Plugin that add some cool function to make scrolling more fun [Archive]
Stars: ✭ 43 (-96.03%)
Mutual labels:  jquery-plugin, scrolling
Animatescroll.js
A Simple jQuery Plugin for Animating Scroll
Stars: ✭ 708 (-34.69%)
Mutual labels:  jquery-plugin, scrolling
Infinitescroll
Infinite Scroll (Endless Scrolling) for RecyclerView in Android
Stars: ✭ 183 (-83.12%)
Mutual labels:  scrolling, infinite-scroll
Sticky Sidebar
😎 Pure JavaScript tool for making smart and high performance sticky sidebar.
Stars: ✭ 2,057 (+89.76%)
Mutual labels:  jquery-plugin, scrolling
scrollbox
A lightweight jQuery custom scrollbar plugin, that triggers event when reached the defined point.
Stars: ✭ 15 (-98.62%)
Mutual labels:  jquery-plugin, infinite-scroll
Paroller.js
Parallax scrolling jQuery plugin
Stars: ✭ 535 (-50.65%)
Mutual labels:  jquery-plugin, scrolling
Viewprt
A tiny, dependency-free, high performance viewport position & intersection observation tool
Stars: ✭ 36 (-96.68%)
Mutual labels:  scrolling, infinite-scroll
Imgviewer
jQuery plugin to zoom and pan images, even those with a size that is a percentage of their container
Stars: ✭ 50 (-95.39%)
Mutual labels:  jquery-plugin
Facebook Reactions Js
A simple & easy solution to add Facebook style "Like" button with reactions.
Stars: ✭ 42 (-96.13%)
Mutual labels:  jquery-plugin
Flutter carousel slider
A flutter carousel widget, support infinite scroll, and custom child widget.
Stars: ✭ 998 (-7.93%)
Mutual labels:  infinite-scroll
Elastic Columns
A jQuery plugin designed to be used as an alternative to the well-known Isotope library.
Stars: ✭ 39 (-96.4%)
Mutual labels:  jquery-plugin
Interactive Image
A jQuery plugin to embed interactive images on your website.
Stars: ✭ 53 (-95.11%)
Mutual labels:  jquery-plugin
Jquery Guide
A jQuery plugin that new layout or new features using guide
Stars: ✭ 50 (-95.39%)
Mutual labels:  jquery-plugin
Bootstrap Show Modal
A Bootstrap 4 / jQuery plugin wrapper, to create modals dynamically in JavaScript
Stars: ✭ 38 (-96.49%)
Mutual labels:  jquery-plugin
Jquery Keyfilter
This plugin filters keyboard input by specified regular expression.
Stars: ✭ 37 (-96.59%)
Mutual labels:  jquery-plugin
Jquery Sse
jQuery Plugin for Server-Sent Events (SSE) EventSource Polyfill
Stars: ✭ 37 (-96.59%)
Mutual labels:  jquery-plugin

jScroll - jQuery Plugin for Infinite Scrolling / Auto-Paging

Build Status npm version Bower version Join the chat at https://gitter.im/pklauzinski/jscroll

Official site at jscroll.com.

Requires jQuery v1.8.0+

Facebook Page

Follow us on Facebook for commit updates: https://www.facebook.com/jScroll.Infinite.Scrolling

Usage

The jscroll method is called on the selector for which you want your scrollable content contained within. For example:

$('.jscroll').jscroll();

The jscroll method takes an optional object literal as a parameter for overriding the default options. An example of how this can be done is shown below.

$('.jscroll').jscroll({
    loadingHtml: '<img src="loading.gif" alt="Loading" /> Loading...',
    padding: 20,
    nextSelector: 'a.jscroll-next:last',
    contentSelector: 'li'
});

Options

  • debug (false) - When set to true, outputs useful information to the console display if the console object exists.
  • autoTrigger (true) - When set to true, triggers the loading of the next set of content automatically when the user scrolls to the bottom of the containing element. When set to false, the required next link will trigger the loading of the next set of content when clicked.
  • autoTriggerUntil (false) - Set to an integer greater than 0 to turn off autoTrigger of paging after the specified number of pages. Requires autoTrigger to be true.
  • loadingHtml ('<small>Loading...</small>') - The HTML to show at the bottom of the content while loading the next set.
  • loadingFunction (false) - A JavaScript function to run after the loadingHtml has been drawn.
  • padding (0) - The distance from the bottom of the scrollable content at which to trigger the loading of the next set of content. This only applies when autoTrigger is set to true.
  • nextSelector ('a:last') - The selector to use for finding the link which contains the href pointing to the next set of content. If this selector is not found, or if it does not contain a href attribute, jScroll will self-destroy and unbind from the element upon which it was called.
  • contentSelector ('') - A convenience selector for loading only part of the content in the response for the next set of content. This selector will be ignored if left blank and will apply the entire response to the DOM.
  • pagingSelector ('') - Optionally define a selector for your paging controls so that they will be hidden, instead of just hiding the next page link.
  • callback (false) - Optionally define a callback function to be called after a set of content has been loaded.

For more information on the contentSelector option and how it loads a response fragment, see the jQuery documentation for the .load() method.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

LICENSES:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].