Smooth Scrolling Documentation
Options
There are several options available in the script:
Step
- Type:
- Number
- Default value:
- 2
Parameter sets the speed multiplier of element's scroll. Use it to adjust scrolling speed.
Friction
- Type:
- Number
- Default value:
- 0.95
Parameter sets the speed deceleration multiplier of element's scroll. Use it to adjust scroll friction.
MinDistance
- Type:
- Number
- Default value:
- 0.1
Parameter sets the minimal distance for scroll to animate.