🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

scroll-indicator-js

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scroll-indicator-js

A simple vanilla JS scroll indicator. No dependencies, best performances.

1.0.3
latest
Source
npm
Version published
Weekly downloads
2
-60%
Maintainers
1
Weekly downloads
 
Created
Source

Scroll Indicator JS

A simple vanilla JS scroll indicator. No dependencies, best performances.

ezgif-4-f043ff0fe8

Get Started

With yarn

yarn add scroll-indicator-js

With npm

npm i scroll-indicator-js

To use it in your app


// main.js
import scrollIndicator from 'scroll-indicator-js'


scrollIndicator() // Start the scroll indicator on all .scroll-indicator classes

Usage

<!-- On the top of your page -->
<div class="scroll-indicator" data-height="5px" data-position="bottom"></div>

<!-- ..... -->
datasetsValueDefault
heightpx3px
positiontop - bottom - left - righttop
colorhex/rgba/linearlinear-gradient(225deg,#ffb938 0%,#ff5729 100%)
reversetrue - falsefalse

Keywords

javascript

FAQs

Package last updated on 20 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts