Giter Site home page Giter Site logo

pixelsock / endless.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from totodunet/endless.js

0.0 2.0 0.0 69 KB

Endless.js jQuery Plugin - Infinite scroll on HTML element

Home Page: http://totodunet.github.io/endless/

License: MIT License

JavaScript 85.06% CSS 2.86% HTML 12.08%

endless.js's Introduction

endless.js

Remark : If the v2.2.0 doesn't work correctly, use v2.1.0

These versions are identical. The v2.2.0 is just an alternative about working (more optimized) but could give some problems depending web browsers.

$(document).ready(function(){
    $(document).endless();
});

It encapsulates automatically the target's content in div block. Your HTML page is infinity scrollable.

optional parameters

direction   //scroll direction ('up','down','left','right','vertical','horizontal')
scrollbar   //hide or show the scrollbar ('enable','disable')
append      //function running when you are arrived at the end and content appeared
prepend     //function running when you are arrived at the beginning and content appeared
n_append    //function running when you can't see the first content
n_prepend   //function running when you can't see the second content

default values

$('myElement').endless({
    direction:'down',
    append:function(){},
    prepend:function(){},
    n_append:function(){},
    n_prepend:function(){}
});

the scrollbar parameter default value depends of your CSS style

others functions included

$('myElement').scrollBottom(); //return scroll bottom position ( scrollTop() inverted )
$('myElement').scrollRight(); //return scroll right position ( scrollLeft() inverted )

See a demonstration here : http://totodunet.github.io/endless/

If you're interested, thanks to fork me or/and contribute to the development of endless.js!

published under the MIT License (http://opensource.org/licenses/MIT)

Totodunet, http://totodu.net/

endless.js's People

Contributors

totodunet avatar

Watchers

James Cloos 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.