1.0.7 • Published 2 years ago

react-animated-typewriter v1.0.7

Weekly downloads
-
License
GNU GPL v3
Repository
github
Last release
2 years ago

react-animated-typewriter

The react-animated-typewriter package is a quick and easy way to implement a typewriter animation component without needing to write any CSS animations or React state management code yourself. This package is based on react-typical and supersets its interface. NPM JavaScript Style Guide

Live Demo: danieltherealyang.github.io

Install

npm install react-animated-typewriter

Usage

import Typing from 'react-animated-typewriter';

function AnimatedTyping() {
  const wait = 1500;
  return (
    <Typing
      steps={[
        'React', wait,
        'C++', wait,
        'Java', wait,
        'Python', wait
      ]}
      loop={Infinity}
      wrapper="b"
      typeDelay={100}
      deleteDelay={10}
    />
  );
}

Props

NameRequiredTypeDescriptionExampleDefault
stepsYesarrayDetermines words to animate and time to wait after typing a word['React', 1000, 'C++', 'Python']None
wrapperNostringElement to wrap text in'b'<span></span>
loopNonumberNumber of times to iterate through steps array51
typeDelayNonumberDelay in ms after each character when typing10050
deleteDelayNonumberDelay in ms after deleting each character1050

License

GNU GPL v3 © danieltherealyang

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago