react-fp-scroll
1.0.0 • Public • Published
- html, css, javascript
- react
import { FullPageScroll } from 'react-fp-scroll';
export default function Test() {
return (
<FullPageScroll>
<div style={{height:'100vh', backgroundColor:'orange'}}></div>
<div style={{height:'100vh', backgroundColor:'lightcoral'}}></div>
<div style={{height:'100vh', backgroundColor:'orange'}}></div>
<div style={{height:'100vh', backgroundColor:'lightcyan'}}></div>
</FullPageScroll>
);
}
// This must be the top-level component of the page.
return (
<FullPageScroll>
{children...}
</FullPageScroll>
)
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads