New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

web-component-number-animation

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-component-number-animation

This is a web component that allows you to create numerical animations on your website.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

web-component-number-animation

This is a web component that allows you to create numerical animations on your website.

Published on npm CI

Features

  • 🌀 Works with any framework or no framework at all.
  • 🍃 Lightweight and easy to use. (only <2kb gzipped)
  • ⚙️ Support multiple attribute configurations including digital formatting, transition duration, etc.

Demo

Open in StackBlitz

Usage

Installation

pnpm i web-component-number-animation   # or npm or yarn
Registration and Usage
import { NumberAnimation } from 'web-component-number-animation';
customElements.define('x-number-animation', NumberAnimation);
<x-number-animation to="12345.6789" />

Using package via CDN

Using ES Module

<script type="module">
  import { NumberAnimation } from 'https://www.unpkg.com/web-component-number-animation/dist/number-animation.js';
  customElements.define('x-number-animation', NumberAnimation);
</script>

<x-number-animation to="12345.6789" />

Configurations

You can customize the behavior of the NumberAnimation component using the following props:

interface Props {
  to: number;
  from?: number;
  precision?: number;
  duration?: number;
  locale?: string;
  disabled?: boolean;
  hideSeparator?: boolean;
}

Keywords

FAQs

Package last updated on 28 Mar 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc