FuckMyScroll
Animated scrolling to certain point or anchor.
You can see a demo here.
Installing
Install via npm
$ npm install --save fuckmyscroll
Usage
In your script, create an instance of FuckMyScroll
const fms = ;fms;
Working with anchors
Truly is not necessary be an anchor, but have href
and fmscroll
attributes.
About <!-- Goes to --> <!-- ... -->
Going to page points
Scroll by cordenates
let X = 0 Y = 1200; fms;
Options
const fms = speed: 14 // 14px/ms, {} {};
- speed
It is possible determine the speed, measured in
pixels/milliseconds
. Default is7px/ms
.
speed: 20 // 20px/ms
- init Callback executed on proccess initiation.
{ // ... }}
- end Callback executed on proccess finalization.
{ // ... }}
Events
It is possible execute specific events for each anchors using fms-init
and fms-end
attributes with global functions:
About