Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

react-transitive-number

3.1.0 • Public • Published

react-transitive-number

React component to apply transition effect to numeric strings, a la old Groupon timers

Demo

Usage

var TransitiveNumber = require('react-transitive-number');
 
module.exports = React.createClass({
    render: function() {
        return (
            <div>
                <TransitiveNumber>2:00</TransitiveNumber>
            </div>
        );
    }
});

Properties

props.children

Text value that should be converted.

props.enableInitialAnimation

Boolean value to toggle animation when component is mounted first time. Defaults to false.

props.className

Optional class name.

install

npm i react-transitive-number

Downloadsweekly downloads

45

version

3.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability