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 🙏

© 2024 – Pkg Stats / Ryan Hefner

toolcool-range-slider

v4.0.28

Published

Responsive range slider library written in typescript and using web component technologies. Pure JavaScript without additional dependencies. It has a rich set of settings, including one and two pointers, a vertical slider, touch, mousewheel and keyboard s

Downloads

5,008

Readme

Tool Cool Range Slider

GitHub package.json version npm NPM

Responsive range slider library written in typescript and using web component technologies. Pure JavaScript without additional dependencies. It has a rich set of settings, including any number of pointers (knobs), vertical and horizontal slider, touch, mousewheel and keyboard support, local and session storage, range dragging, and RTL support. The functionality of the library can be extended using plugins.

Links

Any Number of Pointers

The library supports any number of pointers (knobs/handles): one-pointer range slider, two-pointers range slider, or as many as you need.

Range Slider

Mobile Ready

Responsive and mobile-ready range slider that looks good on any devices :iphone:. It supports touch, mousewheel events, and keyboard.

Accessibility

It accessible via ARIA-attributes :shield:

Range Slider

Marks Plugin

Range slider library has a standalone Marks Plugin. This allows to generate points along the slider:

Range Slider

ES6 JavaScript & Typescript

The library is built with Typescript and does not use external dependencies :unlock:. The core is 28KB minified or 9KB compressed (GZip).

Themes :art:

The library has additional theme plugins with a ready-made set of styles such as gradients, glass, pointer shapes and more. It's also possible to develop your own theme as an external plugin.

https://user-images.githubusercontent.com/106236790/192861157-6bc694ee-3970-4264-b44f-5991b1511c4a.mov

Styles & Design

The library has multiple options for customizing :wrench: the appearance of the slider. Width, height, border radius, colors, hover and focus, and other properties can be customized using the slider attributes.

Images and SVGs can be used as pointers.

Direction & Orientation

The library supports horizontal and vertical orientation :globe_with_meridians:. It also supports left to right and right to left directions for a horizontal slider, and top to bottom and bottom to top for vertical sliders.

Range Slider

Range Slider

Numbers, Text, or Range

The slider range can be defined by a minimum and maximum numbers. Another option is to provide a list of individual (discrete) values. Both text :writing_hand: and numeric data are supported.

Range Slider

Local & Session Storage

Local storage :floppy_disk: and session storage support as a standalone plugin. The user selection will be saved and restored after page refresh or navigation from other pages.

Range Slider

Moving Tooltip Plugin

Range slider library has a standalone Moving Tooltip Plugin. The plugin adds a moving tooltip to each pointer. You can change the tooltip color, size, and distance to pointer.

Range Slider

Range Dragging

The library also supports range dragging:

Range Slider

Origin at Center

The library also has an Origin at Center Plugin. This plugin makes the origin of the pointer always in the center.

Range Slider

Other Features

  • Based on web component technologies.
  • Allows programmatic attribute changes :computer:
  • Simple dynamic rendering after ajax requests or delays.
  • Disabled/enabled range slider (including API).
  • Possibility to disable only one pointer.
  • Non-linear range slider :chart_with_downwards_trend:
  • Optional animation on panel click.
  • Works well with Bootstrap and other CSS frameworks :+1:
  • No CSS conflicts due to web components.
  • Automatically generated labels as a standalone plugin.
  • Any number of sliders on one page.
  • Supports two (and more) pointers overlap, pointers max and min distance.
  • The functionality of the library can be extended using plugins.
  • The range slide can be used in React and other frameworks.
  • Extensive API based on TypeScript. Range Slider

Plugins

License

MIT license

It can be used for free in any personal or commercial project :gift:

Tool Cool Range Slider

Other Projects

  • ミ☆ mzParticles ☆彡 - TypeScript library for creating particle effects.
  • mzMath - a collection of typescript-based math helpers.
  • mzSVG - TypeScript-based library for managing SVG in the browser and Node.js.
  • React Input Number - React component that provides a user-friendly interface for entering numerical values.
  • Stripes Maker - Node.js stripe pattern generator and maker.
  • mzCanvas - The TypeScript-based library for manipulating <canvas> element and 2D graphics in the browser.
  • Tool Cool Color Picker - color picker library written in typescript and using web component technologies.