Skip to content

maomaoZH/react-countup-light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-countup-light

This is a count up component in much light version.

demo

demo

Installation

yarn add react-countup-light

or

npm install react-countup-light

How to use it

import React from 'react';
import { render } from 'react-dom';
import CountUp from 'react-countup-light';

render(
  <CountUp startNum={0} endNum={30} duration={2000} />,
  document.getElementById('root')
);

Props

startNum: number

Start value

endNum: number

End value

duration: number

Duration in milliseconds

className: string

You can define your own class here

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published