An animated label component for React.js
npm install react-animated-label --save-dev
import React from 'react';
import AnimatedLabel from 'react-animated-label';
// Import the CSS
import 'node_modules/react-animated-label/lib/react-animated-label.css';
React.createClass({
render: function() {
return (
<AnimatedLabel value={this.props.yourValue} />
);
}
});
var React = require('react');
var AnimatedLabel = require('react-animated-label');
React.createClass({
render: function() {
return (
<AnimatedLabel value={this.props.yourValue} />
);
}
});
You must include the CSS for this component to work.
Include the component stylesheet in your page <link rel="stylesheet" type="text/css" href="node_modules/react-animated-label/lib/react-animated-label.css">
Inspired by Chartbeat's cb-animated-label