Giter Site home page Giter Site logo

tomashubelbauer / js-infinite-scroll Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 10 KB

Bidirectional infinite scroll with configurable amount of maximum displayed and newly added items

Home Page: https://tomashubelbauer.github.io/js-infinite-scroll

HTML 4.97% JavaScript 95.03%
infinite-scroll infinitescroll infinite-lists infinite-scroll-plugin javascript

js-infinite-scroll's Introduction

Infinite Bidirectional Capped Scroll

LIVE

An example of infinite scroll that loads new items on both hitting the bottom and the top of the page and trims the total amount of items so that a maximum number of items in the page is capped.

To-Do

Achieve smooth scroll on the horizontal axis as well

Fix behavior on Windows Firefox where scrolling to the causes oscilation

Try to preserve the scroll momentum when using the touchpad

On macOS Firefox, when flicking the touchpad to give the scroll a significant momentum, the scrollbar reaches the bottom of the page and gets stopped abruptly which does not preserve its momentum. Instead, we could try detecting the speed of scrolling soon and adjust the mounted content accordingly so that it grows fast enough to drain the momentum of the scroll without reaching the end of the page before more content is loaded.

Package up as an ESM library and add depending instructions to the readme

Host using GitHub Pages to get a URL with the correct MIME.

js-infinite-scroll's People

Contributors

tomashubelbauer avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.