Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

binfinity-rails

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binfinity-rails

  • 0.0.4
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Binfinity Scroll Gem

Installation

In your Gemfile:

gem "binfinity-rais"

In your application.js file

\\= require binfinity

Usage

Binfinity is a javascript plugin that allows infite scroll in either up or down direction.

The format for use is to call window.scroller.initialize(your_callback_here, options_hash).

Downward infinity scroll is a built-in default. To scroll upward, you need to pass {upwardScroll: your_upscroll_callback} as an option in the scroller.initialize function.

Also, to change the clearance value or "cushion" as we call it, pass {cushion: your_integer_value} into initialize.

For example:

$(function(){
  var upCallback = function(){ do stuff here };
  var downCallback = function(){ do stuff here };
  scroller.intialize(myDownCallback, {cushion: 500, upwardScroll: upCallback});
})

Contributing

This project originated as one of twelve 1-day projects of 12 appy days.

Please feel free to fork and contribute:

  1. Fork the repo
  2. Clone the fork $git clone
  3. Create a feature branch git checkout -b YOUR_BRANCH_NAME
  4. Commit & push
  5. Create a pull request

Authors

FAQs

Package last updated on 11 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc