Skip to content
Scrollpercent for showing the percentage of page that has been scrolled
CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
script.js
styles.css

README.md

scrollpercent

Use the scrollpercent by adding the following cdn to the head of the HTML file

<link href="https://cdn.jsdelivr.net/gh/vaibhav111tandon/scrollpercent@latest/styles.css" rel="stylesheet" type="text/css">
<script src="https://cdn.jsdelivr.net/gh/vaibhav111tandon/scrollpercent@latest/script.js"></script>

Usage

<div class="scrollpercent"></div>

Add class bottom-left or bottom-right to define the position of the scrollpercent. By default its position is top-left.

<div class="scrollpercent bottom-right"></div>
You can’t perform that action at this time.