Skip to content

FindScrollable is a jQuery plugin used to find scrollable elements within a given elements (i.e. anything with a scrollbar).

Notifications You must be signed in to change notification settings

dondreytaylor/findscrollable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

findscrollable.js

FindScrollable.js is a jQuery plugin used to find scrollable elements within a given element/elements (i.e. anything with a scrollbar).

Usage

$('.selector').findScrollable( arrayofSelectors, callback ); 

Shorthand Example

The following will grab every element within window that can scroll. If the holder in this case window contains a scrollbar it will be included as well.

$(window).findScrollable(function( elementsThatScroll ) 
{
    // Do stuff with elements that scroll inside of window
});

Example

The following will grab every div within div.content that can scroll. If the holder in this case div.content contains a scrollbar it will be included as well.

$('div.content').findScrollable(['div'], function( elementsThatScroll ) 
{
    // Do stuff with elements that scroll inside of div.content
});

About

FindScrollable is a jQuery plugin used to find scrollable elements within a given elements (i.e. anything with a scrollbar).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published