reactjs-back-to-top

1.0.5 • Public • Published

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

Package Sidebar

Install

npm i reactjs-back-to-top

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

5.18 kB

Total Files

3

Last publish

Collaborators

  • hardikmandanka
  • vaghasiya-mayur