React Shuffle Text
Basic Usage
install:
npm install -S react-shuffle-text
render:
; // somewhere in render function<ShuffleText content="Zhuangbility" />
custom styles & effects:
/* write styles for .shuffle-text-char with higher specificity */ @ 100% }
Available Props
-
content: PropTypes.string.isRequired
- text wanted to display
-
charIncInterval: PropTypes.number (default: 100)
- character increasing time interval
-
charFrames: PropTypes.number (default: 10)
- frame counts that each character plays
-
charFrameTime: PropTypes.number (default: 50)
- duration of each character frame
-
more props are coming