1.0.1 • Published 4 years ago
react-smooth-scroll-to-top v1.0.1
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
Name | Type | Default | Description |
---|---|---|---|
children | Component | ^ | Arrow up with CSS |
color | String | #98a6d4 | Background color of component |
right | String or Number | 30px | Where the component should visible when user scroll reach certain bottom offset |
bottom | String or Number | 40px | Bottom position of the component |
visibleAt | Number | 300 | Right 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
1.0.1
4 years ago