2.2.0 • Published 7 years ago

fastscroll v2.2.0

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

FastScroll

performant custom scroll events and custom scroll propertys

FastScroll gives you custom scroll events like scroll:start, scroll:progress and scroll:end for better event / action handling the events are triggered only in animation frames for the most performant way of default DOM manipulation.

further more it adds special propertys to the scroll state :

scrollY
scrollX
speedY
speedX
angle // TODO
directionY
directionX

FastScroll will only be instanciated once for the same scroll target to save memory and optimize the performance.

Dependencies

none!

Browser support

IE >= 9, *

install

npm install fastscroll

demo (will be updated soon)

https://rawgit.com/soenkekluth/fastscroll/master/demo/index.html please see the console.logs for now

js

var FastScroll = require('fastscroll');
var fastScroll = new FastScroll(); // takes window as scroll target
// or
new FastScroll(yourElement)

fastScroll.on('scroll:start', function(event) {
  console.log('scroll:start', event);
});

fastScroll.on('scroll:progress', function(event) {
  console.log('scroll:progress', event);
});

fastScroll.on('scroll:stop', function(event) {
  console.log('scroll:stop', event);
});
2.2.0

7 years ago

2.1.1

8 years ago

2.0.5

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.7.8

8 years ago

1.7.7

8 years ago

1.7.6

8 years ago

1.7.5

8 years ago

1.7.4

8 years ago

1.7.3

8 years ago

1.7.2

8 years ago

1.7.0

8 years ago

1.6.3

8 years ago

1.6.2

8 years ago

1.6.0

8 years ago

1.5.5

8 years ago

1.5.4

8 years ago

1.5.3

8 years ago

1.5.2

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.0

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago