Socket
Socket
Sign inDemoInstall

che-react-number-easing

Package Overview
Dependencies
7
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    che-react-number-easing

React component for fancy transition for numbers.


Version published
Weekly downloads
39K
decreased by-21.15%
Maintainers
1
Install size
7.13 MB
Created
Weekly downloads
 

Readme

Source

React Number Easing

React component for fancy number transitions.

Live demo

react-number-easing screenshot

Installation

npm i -S che-react-number-easing

Usage.

const NumberEasing = require('che-react-number-easing');

<NumberEasing
  ease="quintInOut"
  precision={2}
  speed={300}
  trail={true}
  useLocaleString={true}
  value={15}
/>

Props

  • [ease]: The easing equation for the animation.
  • [precision]: How many decimal places you want to show?
    • Default: 2
    • Type: number
  • [speed]: How fast do you want to finish the animation?
    • Default:500 (ms)
    • Type: number
  • [trail]: Do you want trailing zeroes?
    • Default: false
    • Type: boolean
  • [useLocaleString]: Use number formatting based on locale?
    • Default: false
    • Type: boolean
  • [value]: The value that you want to display at the end of the animation.
    • Required
    • Type: number

Build

If you want to build this from source, you will need babel and less.

npm install

And run the pre publish script

npm run prepare

Keywords

FAQs

Last updated on 24 Jul 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc