React Fully Scrolled
A full-page scroll component for react with support for touch events.
Inspired by react-fullpage
- Simple
- Performant
- Touch support
Usage
npm install react-fully-scrolled
For mobile compatibility, make sure to disable touchmove events, like so:
document { ev;}
Simple Example
; Component { return <Scroller curPage=1 onBeforeScroll= {} onAfterScroll= {} isEnabled=true > <Section> Page1 </Section> <Section> Page2 </Section> <Section> Page3 </Section> <Section> Page4 </Section> </Scroller> } ;
API
When the component is mounted, a function is added to the global scope:
window.fpTurnTo(pageNum)
Contributing
See CONTRIBUTING.md