@prasiddha/react-smooth-scrolling makes the scroll smooth for your react site.
Use the package manager npm to install @prasiddha/react-image-loader.
npm install @prasiddha/react-smooth-scrolling --save
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;
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 |
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.