Skip to content
React component to apply transition effect to numeric strings, a la old Groupon timers
JavaScript HTML
Branch: master
Clone or download

Latest commit

Latest commit 4693f8a Oct 11, 2017

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
.gitignore
README.md
index.js
package.json
symbol.js
transition.js

README.md

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.

You can’t perform that action at this time.