Directive for basic scrolling and smooth scrolling. Mixins has been removed and replaced with high ordered components (2016-02-02)
$ npm install react-scroll
$ npm install$ npm test$ npm run examples
var React = ;var Scroll = ;var Link = ScrollLink;var Element = ScrollElement;var Events = ScrollEvents;var Section = React;React;
begin - start of the scrolling
var Scroll = ;var Events = ScrollEvents;EventsscrollEvent;
end - end of the scrolling/animation
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