A text animation component for Ink
$ npm install --save ink-text-animation
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>
);
Accepts a string or an Ink component as children
.
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.
Type: number
Default: 1
The speed of the animation.
MIT © Yarden Sod-Moriah