@hansolbangul/animated-typo
v1.0.8
Published
[][npm_url] [][npm_url] [ => {
return (
<TypoAnimated
text={['Hello', 'World', 'React Typing Animation']}
ms={100}
wait={1000}
loop={2}
/>
);
};
export default ExampleComponent;Documentation
For detailed documentation, available props, and more usage examples, please visit the documentation page: https://hansolbangul.github.io/typing-animated/docs.
Props
Here are the available props for the TypoAnimated component:
| Prop | Required | Type | Description | Default |
|------------|----------|------------------------|-----------------------------------------------------------------------------|----------|
| text | yes | string or string[] | Text or array of text strings to display in typing animation | - |
| ms | yes | number | Typing and deleting speed in milliseconds per character | - |
| wait | yes | number | Waiting time in milliseconds before deleting or moving to the next text | - |
| loop | no | number | Number of times to repeat the animation; -1 for infinite | -1 |
Usage Notes
Loop Control
- When
loopis set to a specific number (e.g.,loop={2}), the animation will repeat that many times and stop on the last string intextwithout deleting it.
Compatibility
- This component supports React v17 and above.
- Hot reloading is not fully supported due to the component's memoized nature, so you may need to refresh your page after making changes to
TypoAnimatedcomponent properties.
License
This project is licensed under the ISC License.
