0.1.1 • Published 6 years ago

react-text-type v0.1.1

Weekly downloads
2
License
ISC
Repository
-
Last release
6 years ago

React-Text-Type

A react typewriter animation that handles delays, blinking duration, sustained blinking, size, and typing speed

Installation

npm install --save react-text-type

yarn add react-text-type

Usage

import Typewriter from 'react-text-type';
// const Typewriter = require('react-text-type');

// ...
render() {
    return (
        <Typewriter phrase="Hello World!" />
    );
}

Props

proptypedefaultdescription
phrasestring''The phrase to render in typewriting animation
fontSizestring'4em'Any acceptable css font-size
delaynumber0The amount of time (in ms) before the animation starts
typingSpeednumber1000The amount of time (in ms) between letters animating
blinkDurationnumber500The amount of time (in ms) between caret blinks
sustainedbooleanfalseWhether or not the caret continues to blink after the animation has finished.

This is my first npm module so if there's an issue make an issue I'll get on it :)

0.1.1

6 years ago

0.1.0

6 years ago