ScrollFeatures
performant custom scroll events and custom scroll propertys
ScrollFeatures 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 :
y
x
speedY
speedX
directionY
directionX
ScrollFeatures 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 scrollfeatures
demo (will be updated soon)
https://rawgit.com/soenkekluth/scrollfeatures/master/demo/index.html please see the console.logs for now
js
var ScrollFeatures = ;var scrollFeatures = ; // takes window as scroll target// ordocument scrollFeatures; scrollFeatures; scrollFeatures; scrollFeatures; scrollFeatures; scrollFeatures; scrollFeatures;