Il s'agit d'un composant du fournisseur React qui enveloppe l'intégralité du corps de votre application et y ajoute un effet de défilement fluide.
# Yarn
$ yarn add react-smooth-scrolling
# NPM
$ npm i react-smooth-scrolling --saveimport { SmoothProvider } from 'react-smooth-scrolling'
function App() {
return (
<SmoothProvider skew={true} ease={myEasing}>
<MyCustomPage />
</SmoothProvider>
)
}
Auteur : guilhermerodz
Démo en direct : Voir la démo
Lien de téléchargement : Télécharger le code source
Site Web officiel : https://github.com/guilhermerodz/react-smooth-scrolling
Licence : MIT