Skip to content

Prasiddha22/react-smooth-scrolling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@prasiddha/react-smooth-scrolling

@prasiddha/react-smooth-scrolling makes the scroll smooth for your react site.

Installation

Use the package manager npm to install @prasiddha/react-image-loader.

npm install @prasiddha/react-smooth-scrolling --save

Usage

With @prasiddha/react-smooth-scrolling you can pass ease prop to define how much smooth your scrolling should be. The value that can be passed is 1-9. The lower, the smoother scroll

import { SmoothScroll } from '@prasiddha/react-smooth-scrolling';

const App = () => {
  return <SmoothScroll ease={4}>{/* Your App goes here */}</SmoothScroll>;
};

export default App;

Props

Property Required Default value Description
ease no 4 How much smooth your scrolling should be. The value that can be passed is 1-9. The lower, the smoother scroll

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

Smooth scrolling for react

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published