1.1.2 • Published 1 year ago

react-countup-animate v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-countup-animate

Less dependencies and less sizes and easy to use

Demo

npm.io

Click here to try demo

How to use

Installation

npm isntall react-countup-animate

Example Code

import Countup from "react-countup-animate";

function App() {
  return (
    <Countup number={160000} />
    // <Countup number={"160,000"} reverse={true} />
    // <Countup number={123456} startDelay={0.5} endDelay={1} reverse={true} />
  );
}

export default App;

Options

ParameterTypeDefaultDescription
number (req)num or strnoneNumber to display (numeric or string)
duration (opt)num3Animation time in seconds. Default is 3 seconds.
startDelay (opt)num or ease-in or ease-out0.1Start delay in seconds. Default is 0.1 seconds.
endDelay (opt)num or ease-in or ease-out0.1Delay before stopping in seconds. Default is 0.1 seconds.
easeStartDuration (opt)numMax(n/3,1)Execution time of the ease function for ease-in/out.
easeEndDuration (opt)numMax(n/3,1)Execution time of the ease function for ease-in/out.
reverse (opt)boolfalseWhether to start from the front or back. Default is false.
style (opt)CSSPropsnoneCSS styling (e.g., fontsize, fontweight, color).

More Example

<CountUp startDelay="ease-out" endDelay="ease-in" />

npm.io

<CountUp StartDelay="ease-out" endDelay="ease-in" easeStartDuration={1.5} />

npm.io

<CountUp startDelay="0.1" endDelay="ease-out" reverse={true} />

npm.io

1.1.1

1 year ago

1.1.0

1 year ago

1.1.2

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago