You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-increment-number

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-increment-number

React number increment animation component

0.1.3
latest
Source
npmnpm
Version published
Weekly downloads
8
60%
Maintainers
1
Weekly downloads
 
Created
Source

Number Increment Animation

React number increment animation component

install

npm install react-increment-number
or
yarn add react-increment-number

DEMO

use

import { useState } from 'react'
import IncrementNumber from "react-increment-number";

const [number, setNumber] = useState(0)
const [speed, setSpeed] = useState(5)

const handleAnimationEnd = (endValue: number) => {
    console.log('animation end', endValue)
}
// to: target number(value must be a number)
// speed: animation speed(1-10) and default value is 5;
<template>
    <IncrementNumber to={number} speed={speed} callback={handleAnimationEnd} />
</template>

Keywords

react

FAQs

Package last updated on 29 Nov 2022

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