0.1.2 • Published 2 years ago

@prasiddha/react-smooth-scrolling v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@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

PropertyRequiredDefault valueDescription
easeno4How 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