react-mouse-smooth
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Repository size GitHub last commit License Feito por Jonathan Ferraz


React Mouse Smooth

Add smooth scrolling to your react project

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

Made with &nbsp💜&nbsp by Jonathan Ferraz

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i react-mouse-smooth

      Weekly Downloads

      8

      Version

      1.0.2

      License

      MIT

      Unpacked Size

      24.7 kB

      Total Files

      5

      Last publish

      Collaborators

      • jonathanferraz