1.0.2 • Published 4 years ago
react-mouse-smooth v1.0.2
Install
# npm
  npm i react-mouse-smooth
# yarn
  yarn add react-mouse-smoothUsage
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: numbertempo entre a rolagem suavesize: numbero tamanho de pixel a cada rolagemkeyboardSupport: booleandefinir se deve aplicar o efeito ao usar o teclado