1.0.2 • Published 3 years ago

react-mouse-smooth v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Install

# npm
  npm i react-mouse-smooth

# yarn
  yarn add react-mouse-smooth

Usage

Import MouseSmooth in your App.js

// import
import { MouseSmooth } from 'react-mouse-smooth';

// const
const { SmoothScroll } = require('react-mouse-smooth');

Example

import React from 'react';

import { SmoothScroll } from 'react-mouse-smooth';

function App() {
  SmoothScroll({});

  return ()
}

export default App;

Options:

  • time: number tempo entre a rolagem suave
  • size: number o tamanho de pixel a cada rolagem
  • keyboardSupport: boolean definir se deve aplicar o efeito ao usar o teclado