https://github.com/yardnsm/ink-text-animation
A text animation component for Ink
https://github.com/yardnsm/ink-text-animation
chalk-animation colors ink ink-component react text-animation
Last synced: 17 days ago
JSON representation
A text animation component for Ink
- Host: GitHub
- URL: https://github.com/yardnsm/ink-text-animation
- Owner: yardnsm
- License: mit
- Created: 2018-04-05T12:48:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-15T14:29:11.000Z (about 6 years ago)
- Last Synced: 2024-10-11T00:05:17.279Z (7 months ago)
- Topics: chalk-animation, colors, ink, ink-component, react, text-animation
- Language: JavaScript
- Size: 242 KB
- Stars: 67
- Watchers: 0
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ink-text-animation
[](https://travis-ci.org/yardnsm/ink-text-animation)
> A text animation component for [Ink](https://github.com/vadimdemedes/ink/)

## Install
```console
$ npm install --save ink-text-animation
```## Usage
```javascript
import { h, render, Text } from 'ink';
import TextAnimation from 'ink-text-animation';render(
{`Look at me, I'm moving!`}
);
```## API
### ``
Accepts a string or an Ink component as `children`.
#### Props
##### name
Type: `string`
Default: `rainbow`
Values: `rainbow` `pulse` `glitch` `radar` `neon`The name of the animation. You can find all the available animations in the
[`chalk-animations` README](https://github.com/bokub/chalk-animation#available-animations).##### speed
Type: `number`
Default: `1`The speed of the animation.
---
## License
MIT © [Yarden Sod-Moriah](http://yardnsm.net/)