Typing animation with react
npm install react-typing
Typing animation with react
This library provides a Typing component that you can wrap around text or
other react components and it will animate the text inside.
bash
$ npm install --save react-typing
`
Usage
`jsx
import React from 'react';
import Typing from 'react-typing';function App() {
return (
Hello World!
);
}
``jsx
// Pass html elements as children
Hello World!
Hello World!
``jsx
// Pass react components
Hello World!
{new Date()}
`
The Typing component will animate any text in props children.$3
####
keyDelay (number)Default:
100Sets the animation delay between each key press. This delay value is in
milliseconds.
####
onDone` (function)Function to be called when typing animation is done.