Skip to content

Latest commit

Β 

History

History
57 lines (46 loc) Β· 2.45 KB

File metadata and controls

57 lines (46 loc) Β· 2.45 KB

React Flip Numbers

Coverage Status npm version npm downloads npm npm

Make number animation looks sexy πŸ‘

  • Flip your numbers in 3D space
  • Super easy to use

Install

npm install react-flip-numbers -S

Flip your number

Quickstart

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"
    />
  );
};

API

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