React Scroll
Directive for basic scrolling and smooth scrolling. Mixins has been removed and replaced with high ordered components (2016-02-02)
Install
$ npm install react-scroll
Run
$ npm install$ npm test$ npm run examples
Examples
Checkout examples
Basic
Usage
var React = ;var Scroll = ; var Link = ScrollLink;var Element = ScrollElement;var Events = ScrollEvents; var Section = React; React;
Scroll events
begin - start of the scrolling
var Scroll = ; var Events = ScrollEvents; EventsscrollEvent;
end - end of the scrolling/animation
EventsscrollEvent;
Remove events
EventsscrollEvent;EventsscrollEvent;
Create your own Link/Element
Simply just pass your component to one of the high order components (Element/Scroll)
var React = ;var Scroll = ; var Helpers = ScrollHelpers; var Element = React; moduleexports = Helpers; var Link = React; moduleexports = Helpers;
Things that needs to be done - feel free to contribute.
- Being able to use react-scroll within a div.
- Integrate react-scroll with react-router
- Hash-scrolling.