Make number animation looks sexy π
- Flip your numbers in 3D space
- Super easy to use
npm install react-flip-numbers -S
import react from 'react';
import FlipNumbers from 'react-flip-numbers';
export default () => {
return (
<FlipNumbers
height={12}
width={12}
color="red"
background="white"
play
perspective={100}
numbers="12345"
/>
);
};| Prop | Type | Required | Description |
|---|---|---|---|
numbers |
string | β | |
play |
boolean | β | Start the animation |
height |
number | β | Individual number height |
width |
number | β | Individual number width |
color |
string | β | Number color |
background |
string | β | Background color |
perspective |
number | Css 3D transition perspective | |
nonNumberStyle |
string | Css inline style for not number eg , : . | |
numberStyle |
string | Css inline style for number | |
durationSeconds |
number | ||
delaySeconds |
number |
