0.1.1 • Published 7 years ago

sticky-stacky-scrollr v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

StickyStackyScrollr

An old project that allowed stacking up any kind of html element as the user scrolled. Kind of handy for small little projects but very basic. Might think about cleaning it up and turning it into something useful one day... if I get bored enough.

A working example can be found Here!

// Pass in an array of elements you want to stack and the parent container
// if it's not the window
const Scroll = new StickyStackyScrollr(['.class','#id', 'element'], '.parent');

// Remove all listeners if necessary
$('.removeScrolling').click( () => Scroll.unbind() );

TODO:

  • Remove dependency on jQuery.
  • Create build for npm version.
  • Create Browser unminified and minified versions.
  • Write some Tests n stuff.