use-locomotive
v0.1.91
Published
Use Locomotive
Downloads
8
Readme
Use-Locomotive
JSX wrapper for Locomotive Scroll.
Download
npm:
npm install use-locomotive --save
yarn:
yarn add use-locomotive
Usage
import useLocomotive from "use-locomotive";
const App = () => {
const loco = useLocomotive();
return (
<loco.div container smooth>
<loco.div section>
<loco.h1 scroll speed={2}>
HELLO WORLD
</loco.h1>
</loco.div>
</loco.div>
)
}