react-fp-scroll

1.0.0 • Public • Published

Full-Page-Scroll Project

Stack

  • html, css, javascript
  • react

Example

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

none

Package Sidebar

Install

npm i react-fp-scroll

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

21.9 kB

Total Files

19

Last publish

Collaborators

  • covykim