npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

scrolline

v1.0.0

Published

```HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <scroll-progress data-sp-label="text"></scroll-progres

Downloads

2

Readme

js-scroll-progress

Пример использования | Example of use:

<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
 </head>
 <body>
  <scroll-progress data-sp-label="text"></scroll-progress>
  <script src="scroll-progress.js"></script>
 </body>
</html>

preview

Описание на русском языке

scroll-progress — это легковесный пользовательский элемент, который отображает индикатор прогресса прокрутки на веб-страницах. Этот компонент помогает пользователям отслеживать их положение на странице, предоставляя визуальную обратную связь о том, насколько они прокрутили контент. Он идеально подходит для длинных страниц, где пользователи могут потерять представление о своей текущей позиции.

Основные характеристики:

  • Простота использования: Легко интегрируется в любой проект с использованием стандартного HTML.
  • Доступность: Включает ARIA-атрибуты для улучшения взаимодействия с экранными читалками.
  • Настраиваемый стиль: Пользователи могут легко изменять внешний вид индикатора с помощью CSS.
  • Оптимизированный производительность: Эффективно обновляет прогресс при прокрутке, минимизируя нагрузку на производительность.

Атрибут data-sp-label:

Атрибут data-sp-label позволяет разработчикам задавать текстовую метку для индикатора прогресса. data-sp-label заменяется на aria-label Эта метка используется для улучшения доступности элемента, предоставляя дополнительную информацию о его функции. Например, если вы укажете data-sp-label="Прогресс прокрутки", это поможет экранным читалкам сообщить пользователям о назначении индикатора. Этот атрибут не обязателен.

Изменение стилей через переменные:

Вы можете настроить внешний вид индикатора прогресса, изменяя CSS-переменные в корневом элементе. Вот доступные переменные:

--sp-color-background: Цвет фона индикатора. --sp-color-line: Цвет линии прогресса. --sp-height: Высота индикатора. --sp-transition: Параметры перехода для анимации изменения ширины линии.

Пример изменения стилей:

:root {
  --sp-color-background: #E0E0E0 !important;
  --sp-color-line: #4CAF50 !important;
  --sp-height: 0.5rem !important;
}

Description in English

scroll-progress is a lightweight custom element that displays a scroll progress indicator on web pages. This component assists users in tracking their position within the page by providing visual feedback on how far they have scrolled through the content. It is particularly useful for lengthy pages where users may lose track of their current position.

Key Features:

  • Ease of Use: Easily integrates into any project using standard HTML.
  • Accessibility: Includes ARIA attributes to enhance interaction with screen readers.
  • Customizable Style: Users can easily modify the appearance of the indicator using CSS.
  • Optimized Performance: Efficiently updates the progress as users scroll, minimizing performance overhead.

Attribute data-sp-label:

The data-sp-label attribute allows developers to set a textual label for the progress indicator. data-sp-label is replaced by aria-label. This label is used to enhance the accessibility of the element by providing additional information about its function. For example, if you specify data-sp-label="Scroll Progress", it helps screen readers convey the purpose of the indicator to users. This attribute is optional.

Changing styles via variables:

You can customize the appearance of the progress bar by changing CSS variables in the root element. Here are the available variables:

-sp-color-background: The background color of the indicator. -sp-color-line: The color of the progress line. -sp-height: The height of the indicator. -sp-transition: Transition parameters for animation of line width change. -sp-color-line: The color of the progress bar

:root {
  --sp-color-background: #E0E0E0E0 !important;
  --sp-color-line: #4CAF50 !important;
  --sp-height: 0.5rem !important;
}

Контакты | contacts:

Telegram