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

@jhonnold/react-animated-number

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

@jhonnold/react-animated-number

React Component to animate a number changing value

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

@jhonnold/react-animated-number

React Component to animate a number changing value

NPM downloads build status license

Install

npm install --save @jhonnold/react-animated-number

Getting Started

import AnimatedNumber from '@jhonnold/react-animated-number';

<AnimatedNumber number={...} />;

General

See the example to get a full understanding of functionality.

Configure

number

Type: number Required

The value to be display

initial

Type: number Default: 0

The starting value that the intial animation will begin from

fps

Type: number Default: 60

The framerate of the animation. Note, this is a maximum, not a forced framerate.

duration

Type: number Default: 250

The duration of the animation in ms.

format

Type: (value: number): string | number;

A function to format the output of an animation. i.e. Math.round

component

Type: string Default: 'p'

The element to render the animated value with.

License

MIT © jhonnold

Keywords

FAQs

Package last updated on 30 Apr 2020

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