Add Smooth Scrolling Effect To The Entire App Body

Description:

This is a React Provider Component which wraps your entire application body and adds a smooth scrolling effect to it.

Install & Import:

# Yarn
$ yarn add react-smooth-scrolling
# NPM
$ npm i react-smooth-scrolling --save
import { SmoothProvider } from 'react-smooth-scrolling'

Basic usage:

function App() {
  return (
    <SmoothProvider skew={true} ease={myEasing}>
      <MyCustomPage />
    </SmoothProvider>
  )
}

Preview:

Add Smooth Scrolling Effect To The Entire App Body

Add Comment