Socket
Socket
Sign inDemoInstall

jquery.scrolli

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jquery.scrolli

A lightweight plugin to add content indicators on veritcally scrolling content. Usually used to set the top border color if there is content above, and a bottom border color if there is content below.


Version published
Weekly downloads
1
Maintainers
1
Install size
9.80 kB
Created
Weekly downloads
 

Readme

Source

jquery.scrolli.js

Overview

jquery.scrolli.js provides simple scroll indicators. Please see index.html for an example implementation.

Methods

// Add a jQuery collection
$.scrolli.add$List( $scrolling_divs );

// Recalculate scroll indicators.  Useful after a window resize.
$.scrolli.recalc$All();

// Remove a jQuery collection
$.scrolli.rm$List( $others_divs );

// Remove all scrolli elements
$.scrolli.reSet();

How it works

Scrolli simply adds a class to an element if it is substantially scrolled down (a "top content indicator"), and adds a different class if there is content below the bottom edge of the scroll area (a "bottom content indicator"). The top indicator class is 'scrolli-top-in' and the bottom indicator class is 'scrolli-btm-on'. These are easly changed by modifying the file.

Compatibility

Should work on all browsers supported by jQuery 3.

Release Notes

2016 Michael S. Mikowski (mike[dot]mikowski[at]gmail[dotcom])

License

MIT

Version 1.x

  • First "public release" versions with a working example.

End

Keywords

FAQs

Last updated on 28 Nov 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc