New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-number-easing

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-number-easing

React component for fancy transition for numbers.

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
1.7K
-10.16%
Maintainers
1
Weekly downloads
 
Created
Source

React Number Easing

React component for fancy number transitions.

› Online Demo.

react-number-easing screenshot

Installation

npm install react-number-easing --save

Usage.

import NumberEasing from 'react-number-easing';

<NumberEasing
  value={15}
  speed={300}
  decimals={0}
  ease='quintInOut' />

Props

  • value: The value that you want to display at the end of the animation. This is the target value.
  • [speed]: How fast do you want to finish the animation? Defaults to 500ms.
  • [ease]: The easing equation for the animation. Defaults to quintInOut. You can choose from mattdesl/eases.
  • [decimals]: Number of decimal numbers to show.
  • [customFunctionRender]: Function that replaces the default Number(value).toString(decimals) render function. It takes one argument currentRenderValue which is a Float with the current eased value to render and should return a string.

Keywords

react

FAQs

Package last updated on 15 Dec 2021

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