1.0.2 • Published 2 years ago

react-number-easing v1.0.2

Weekly downloads
176
License
BSD-3-Clause
Repository
github
Last release
2 years ago

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.
1.0.2

2 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.4

7 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago