1.0.1 • Published 5 years ago

react-smooth-scroll-to-top v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

React Scroll To Top

React.js component for smooth scroll top page Demo

Getting Started

Installing

npm install

End with an example of getting some data out of the system or using it for a little demo

Import and use

on a single component

import ScrollToTop from './ScrollToTop';

<div>
  <ScrollToTop />
</div>

Props

NameTypeDefaultDescription
childrenComponent^Arrow up with CSS
colorString#98a6d4Background color of component
rightString or Number30pxWhere the component should visible when user scroll reach certain bottom offset
bottomString or Number40pxBottom position of the component
visibleAtNumber300Right position of the component

Built With

  • React.js - The web framework used
  • Styled Components - For styles
  • react-transition-group - For animations
  • prop-types

Authors

  • Davi Pereira

License

This project is licensed under the MIT License - see the LICENSE.md file for details