A Lightweight JavaScript Library For Easy Momentum & Parallax Scrolling | slickscroll.js

Momentum scrolling is smooth and fancy websites with smooth scrolling should allow the page to flow smoothly when scrolling.

momentum scrolling javascript, what is momentum scrolling, jquery smooth custom scrollbar, postcss momentum scrolling, scroll to top library, momentum scrolling

How to make use of it:

1. Install and import the library with NPM.

# NPM
$ npm i slickscrolljs --save
import slickScroll from 'slickscroll.es.min.js';

2. Initialize the library and also you’re able to go.

const slick = new slickScroll;

3. Apply the momentum scrolling impact to the whole doc.

slick.momentumScroll({
  root: "body"
})

4. Specify the duration of the animation.

slick.momentumScroll({
  root: "body",
  duration: 800,
})

5. Available easing features:

slick.momentumScroll({
  root: "body",
  easing: "easeOutQuart",
})

6. Apply a parallax scrolling effect to components.

slick.momentumScroll({
  root: "body",
  offsets: [
    {
      element: ".parallax-element-1", speedY: 0.8
    },
    {
      element: ".parallax-element-2", speedY: 0.6
    },
    // ...
  ],
})

7. Set the fixed high offset in instances the place you might have sticky components like header navigation.

slick.momentumScroll({
  root: "body",
  fixedOffsets: [
    ".site-header"
  ]
})

Momentum & Parallax Scrolling Library, Slickscroll Plugin/Github, smooth scrolling mouse wheel, smooth scrollbar


See Demo And Download

Official Website(Musab-Hassan): Click Here

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

Related Posts

Infinite-Image-Carousel

A Simple Infinite Image Carousel Using Pure Javascript

simple infinite carousel, an extremely small, easy-to-use, and infinitely repetitive circular image slider created with regular JavaScript and CSS. Must Read: Flip Sliding Carousel Gallery Made Of…

vue3-blocks-tree

A Vue3 Block Organization Tree View Component Library

Block tree is a simple organizational hierarchical horizontal or vertical tree view based on Vue3.x. It supports events, slots, horizontal visibility, and node processing. Thanks to hukaibaihu…

image-preview-js

Front-End Image Preview For Mobile-Web Applications | imagePreview

Mobile JS photo preview plug-in supports rotation and zoom (two fingers / double click), and comfort and smoothness is the biggest pursuit. ImagePreview is an iOS-style, mobile-first,…

Fullscreen-Lightbox-Plugin

Simple And Powerful Fullscreen Lightbox Plugin | fslightbox

Fullscreen Lightbox Basic is a modern and handy plug-in for displaying photos and videos in a clean overlay box. Showcase a single source or create a great…

Create-Data-Flows-with-Drag-And-Drop-Flowchart

Create Data Flows with Drag And Drop Flowchart Builder | Drawflow

Flow diagram allows you to create data streams easily and quickly. Install a JavaScript library only and have four lines of code. Draw flow is a JavaScript…

Bootstrap-5-&-Material-Design

[mdb-ui-kit] Latest Bootstrap 5 & Material Design 2.0 UI KIT

Bootstrap Material Design UI KIT – Build responsive mobile projects on the web using the world’s most popular material design front-end component library. This is a pure…