Press "Enter" to skip to content

Smooth Scrolling Effect Using Mouse Wheel | scrooth

scrooth is a small JavaScript library that adds a configurable smooth scrolling effect with momentum style to native page scrolling.

Smooth scrolling effect (while using the mouse wheel). No need for jQuery or other unnecessary things.

How to make use of it:

Import the scrooth library into your doc and accomplished.

<script src="scrooth.js"></script>

By default, scrooth will routinely allow the graceful scroll impact on the whole body:

const body = new Scrooth();

You can even initialize the scrooth on any scrollable component you favor.

const scroll = new Scrooth({
      element: window // target element
});

Config the graceful scroll with the next parameters.

const scroll = new Scrooth({
      strength: 10,
      acceleration: 1.2,
      deceleration: 0.975
});

Smooth Scroll With Inertia Support, scrooth Plugin/Github

Read More  JavaScript Library to Draw Shadows of Rectangles and Polygons in WebGL | PolyShadow.js

See Demo And Download

Official Website(shererere): Click Here

This superior jQuery/javascript plugin is developed by shererere. For extra Advanced Usages, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *