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

volutus

v1.0.11

Published

Volutus is a lightweight JavaScript library designed to create smooth, infinite sliders with minimal setup. it provides seamless scrolling experiences and supports many gestures : mouse wheel navigation, touch/drag interactions and button controls.

Downloads

35

Readme

Volutus

Introduction

Volutus is a lightweight JavaScript library designed to create smooth, infinite sliders with minimal setup. it provides seamless scrolling experiences and supports many gestures : mouse wheel navigation, touch/drag interactions and button controls.

Content

Installation

Using a package manager:

npm i volutus
import Volutus from 'volutus'

Setup

Basic

const volutus = new Volutus({
  direction : 'column',
  container: container,
  items: items
})

Custom

  const volutus = new Volutus({
    // Direction
    direction: "row",
    // HTML Elements
    container : container,
    items : items,
    previousButton : buttonPrev,
    nextButton : buttonNext,
    // Features
    supportScroll: true,
    supportDrag: true,
    supportButtons : true,
    // Tweaks
    gap: 12,
    scrollStrength: 0.4,
    dragStrength: 1.3,
    snapStrength: 0.02,
    lerpFactor: 0.09
  });

Settings

| Option | Type | Default | Description | |------------------------|----------------------------|----------------------------------------------------|-----------------------------------------------------------------------------------------------------------| | direction | string | column | The direction of the scroll. Either 'column' or 'row'. | | container | HTMLElement | undefined | The element that will be used as the scroll container. | | items | NodeList | undefined | A list that contains the elements that will be scrolled, usually container's children. | | previousButton | HTMLElement | undefined | The element that will be used as the previous item navigation button. | | nextButton | HTMLElement | undefined | The element that will be used as the next item navigation button. | | gap | number | 12 | The space between the items. | | scrollStrength | number | 0.2 | A value that sets the strength of the mouse wheel on the slider. (Min: 0.01, Max: 1.0, Step: 0.01) | | dragStrength | number | 1.5 | A value that sets the strength of the touch/drag on the slider. (Min: 0.1, Max: 1.5, Step: 0.1) | | snapStrength | number | 0.02 | A value that sets the strength of the snap effect on the slider. (Min: 0.001, Max: 0.15, Step: 0.002) | | lerpFactor | number | 0.05 | A value that determines the interpolation weight in the scroll lerp. (Min: 0.01, Max: 0.3, Step: 0.01) | | supportScroll | boolean | true | Wether or not to support mouse wheel navigation. | | supportDrag | boolean | true | Wether or not to support touch/drag interactions. | | supportButtons | boolean | true | Wether or not to support button controls. | | allowSnap | boolean | true | Wether or not the snap effect is active. |

Properties

| Property | Type | Description | |---------------------------|-----------------|-----------------------------------------------------------------------------------------------------------| | currentItemIndex | number | Index of the current item. | | currentItem | HTMLElement | The HTML of the current item. | | itemSizes | object | An object that contains sizes properties of the items. | | blockSizes | object | An object that contains sizes properties of a block (a block is the sum of an item and the gap). | | containerSizes | object | An object that contains sizes properties of a the container. | | sliderSizes | object | An object that contains sizes properties of the theoritical slider (the sum of all the elements and gaps).| | targetScrollY | number | The scroll level on Y axis the slider is aiming to. Based on the user inputs. | | scrollY | number | The current scroll level on Y axis. | | isColumn | boolean | Direction indicator. Returns true if the direction is set column. |

Default CSS

Volutus applies three basic CSS classes on the slider elements:

  • .volutusContainer on the container.
  • .volutusItem on each items.
  • .volutusItemSelected on the currently selected item.

This classes contain the following properties:

.volutusContainer{
  position: relative;
  overflow: hidden;
}

.volutusItem{
  position: absolute;
}

.volutusItemSelected{
}

Custom CSS

You can add you own properties to the slider elements using the default Volutus classes.

.volutusContainer{
  background-color: #fefefe;
  padding: 0 12px;
  width: 90%;
  height: 100%;
}

.volutusItem{
  background-color: #dfdfdf;
  width: calc(100% - (2 * 12px));
  height: 75%;
  border-radius: 8px;
  border: 1px solid #dfdfdf;
  transition: background-color 0.1s, border 0.3s;
}

.volutusItemSelected{
  background-color: #cdcdcd;
  border: 1px solid #3cd08d;
}