0.1.1 • Published 4 years ago

back-to-top-arrow v0.1.1

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

Back To Top Arrow

Simple customizable Vanilla JS back to top arrow.

Installation

npm i back-to-top-arrow

Usage

Import package

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

Import stylesheet

import './node_modules/back-to-top-arrow/back-to-top.css';

Call the function

backToTop();

Function can take 4 arguments, if none are passed, default values are used.

No.PropertyDefaultTypeDescription
1.Depth0.4NumberScroll depth at which the arrow appears (0 - 1)
2.Background color#a8a7aStringColor of the background area
3.Background on hover#ebe8e8StringColor of the background area on hover
4.Arrow color#1f1e1eStringColor of the arrow

Example usage with custom settings

backToTop(0.6, '#000', '#2e2d2d', '#fff');

License

MIT

0.1.0

4 years ago

0.1.1

4 years ago

0.1.9

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

1.0.0

4 years ago