Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

A text animation component for Ink

Awesome Lists containing this project

README

        

# ink-text-animation

[![Build Status](https://travis-ci.org/yardnsm/ink-text-animation.svg?branch=master)](https://travis-ci.org/yardnsm/ink-text-animation)

> A text animation component for [Ink](https://github.com/vadimdemedes/ink/)

![](.github/screenshot.gif)

## 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/)