React组件将过渡效果应用至数字字符串,就像一个老Groupon计时器
react-transitive-number - React组件将过渡效果应用至数字字符串,就像一个老Groupon计时器
React UI动画
共203Star
详细介绍
react-transitive-number
React component to apply transition effect to numeric strings, a la old Groupon timers
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.
-
67 Star
-
0 Star
-
1 Star
-
206 Star
-
799 Star
-
50 Star
-
295 Star
-
313 Star
-
65 Star