mshekera / react-number-easing

React component for fancy number transitions.

Home Page:http://javier.xyz/react-number-easing/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React component for fancy number transitions.

Live demo

react-number-easing screenshot

Installation

npm install react-number-easing --save

Usage.

var NumberEasing = require('react-number-easing');

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

Props

  • value: The value that you want to display at the end of the animation.
  • [speed]: How fast do you want to finish the animation? Defaults to 500ms.
  • [useLocaleString]: Should use toLocaleString()?
  • [ease]: The easing equation for the animation. Defaults to quintInOut. You can choose from mattdesl/eases.

Build

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

npm install -g babel less

And run the pre publish script

npm run prepublish

About

React component for fancy number transitions.

http://javier.xyz/react-number-easing/


Languages

Language:JavaScript 99.8%Language:CSS 0.1%Language:HTML 0.1%