ink-text-animation
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/ink-text-animation package

0.1.0 • Public • Published

ink-text-animation

Build Status

A text animation component for Ink

Install

$ npm install --save ink-text-animation

Usage

import { h, render, Text } from 'ink';
import TextAnimation from 'ink-text-animation';
 
render(
  <div>
    <TextAnimation>
      <Text>{`Look at me, I'm moving!`}</Text>
    </TextAnimation>
  </div>
);

API

<TextAnimation />

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.

speed

Type: number
Default: 1

The speed of the animation.


License

MIT © Yarden Sod-Moriah

Package Sidebar

Install

npm i ink-text-animation

Weekly Downloads

14

Version

0.1.0

License

MIT

Unpacked Size

8.51 kB

Total Files

6

Last publish

Collaborators

  • yardnsm