New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

svelte-scrollprogress

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

svelte-scrollprogress

A powerful package that adds a customizable scroll meter to your website or web application. It dynamically displays your scrolling progress and allows you to position it anywhere - top, bottom, left, or right - to fit your design perfectly.

unpublished
latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Svelte ScrollProgress

Shows your scroll progress, as you scroll

Installing

  • pnpm
    pnpm add -D svelte-scrollprogress
  • npm
    npm install -D svelte-scrollprogress
  • yarn
    yarn add -D svelte-scrollprogress

Usage

Using this component is very easy. Just import it and you are good to go

<script>
	import Progress from "svelte-scrollprogress";
</script>

s
<Progress color="orange" background="green" zIndex="9999" height="10px" />

Customization

This component is very customizable, almost everything can be changed

PropertyTypeDescriptionDefault
colorStringThe color of the scrollbar component. Any valid CSS background property is allowed. Including images tootomato
positionStringThe position of the scrollbar component. Valid values are "top", "bottom", "left" and right"bottom
zIndexIntegerThe order of overlapping elements999
heightStringThe height or width of the scrollbar component. Any valid CSS size value is allowed5px
backgroundStringThe background color of the scroll bar component. Any valid CSS background property is acceptedtransparent

Events

The component does fire some events

Event NameDescription
changeThis is called whenever the scroll value changes

Keywords

svelte

FAQs

Package last updated on 22 May 2023

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