1.0.2 • Published 6 years ago
react-did-scroll v1.0.2
react-did-scroll
Monitor for scroll events in React
Import
import DidScroll from "react-did-scroll";
Usage
<DidScroll>
{({pixels, percent}) => (
<div style={styles}>
<h2 style={{ position: "fixed" }}>pixels: {pixels}, percent: {percent}</h2>
</div>
)}
</DidScroll>