1.0.5 • Published 3 years ago

reactjs-back-to-top v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

reactjs-back-to-top

Reactjs back-to-top is a simple function for the website.

Installation

npm i reactjs-back-to-top

Usage

import backToTop from 'reactjs-back-to-top';

# pass arguments
let option = {
    text: 'Back to top',   
    background: '#f90404', 
    fontColor: '#000',     
    image:'https://upload.wikimedia.org/wikipedia/commons/thumb/b/bd/Top_Arrow.svg/1200px-Top_Arrow.svg.png',              
    displayAfterScroll:30, //percentage
    className:''           // custom class
}
backToTop.init(option);

Contributing

Hardik Mandanka Mayur Vaghasiya

License

MIT