Skip to content
Balázs Galambosi edited this page Sep 3, 2015 · 11 revisions

Public API

You can change the options by passing your custom options:

SmoothScroll({ stepSize: 20 })

And destroy SmoothScroll by calling destroy as early as possible:

SmoothScroll.destroy()

Options

{
    // Scrolling Core
    animationTime    : 400, // [ms]
    stepSize         : 100, // [px]

    // Acceleration
    accelerationDelta : 50,  // 50
    accelerationMax   : 3,   // 3

    // Keyboard Settings
    keyboardSupport   : true,  // option
    arrowScroll       : 50,    // [px]

    // Pulse (less tweakable)
    // ratio of "tail" to "acceleration"
    pulseAlgorithm   : true,
    pulseScale       : 4,
    pulseNormalize   : 1,

    // Other
    touchpadSupport   : false, // ignore touchpad by default
    fixedBackground   : true, 
    excluded          : ''    
};
Clone this wiki locally