Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork343
Turn your existing pagination into infinite scrolling pages with ease
License
webcreate/infinite-ajax-scroll
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Turn your existing pagination into infinite scrolling pages with ease.
- SEO friendly 🥇
- Doesn't break browsers back button 💯
- Highly customizable ✨
More features, documentation and examples available at:https://docs.infiniteajaxscroll.com/
Get up and running in no time by linking directly to Infinite Ajax Scroll onunpkg.
<script src="https://unpkg.com/@webcreate/infinite-ajax-scroll@^3/dist/infinite-ajax-scroll.min.js"></script>
Place this code right before the</body>
tag on each template or page that you want to use infinite scroll on.
Are you using NPM in your projects? You can install and update our package easily.
$ npm install --save @webcreate/infinite-ajax-scroll
Infinite Ajax Scroll works on a container with item elements which get appended. A next link is used to determine the next url.
<divclass="container"><divclass="item">...</div><divclass="item">...</div><divclass="item">...</div> ...</div><divclass="pagination"><ahref="page1.html"class="prev">Prev</a><spanclass="current">2</span><ahref="page3.html"class="next">Next</a></div>
Now you can configure Infinite Ajax Scroll:
// import if you use the NPM packageimportInfiniteAjaxScrollfrom'@webcreate/infinite-ajax-scroll';letias=newInfiniteAjaxScroll('.container',{item:'.item',next:'.next',prev:'.prev',pagination:'.pagination'});
Full documentation can be found athttps://docs.infiniteajaxscroll.com
Infinite Ajax Scroll is dual licensed:
- Under the Free Software Foundation’sGNU AGPL v.3.0; or
- Under anInfinite Ajax Scroll Commercial License
Buying a commercial license is mandatory as soon as you develop commercial activities distributing the Infinite Ajax Scroll software inside your product or deploying it on a network without disclosing the source code of your own applications under the AGPL license.
Seehttps://infiniteajaxscroll.com/licenses/ for more details.
About
Turn your existing pagination into infinite scrolling pages with ease
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.