1.1.0 • Published 3 years ago

react_simple_typist v1.1.0

Weekly downloads
13
License
MIT
Repository
github
Last release
3 years ago

react_simple_typist

a simple character typist react component

NPM JavaScript Style Guide

Demo

Intro

This is a simple version of react component which functions as a typist robot.

It accepts an array of text data and animates them for each line one after the other.

It is also stylable. Each line's class name can be achieved.

The pattern for each line class name will be the name you given (default is 'lineClassName') and follow by the index of the array.

Install

npm install --save react_simple_typist
or
yarn add react_simple_typist

Usage

import React from 'react'
import TypeText from 'react_simple_typist'
// To make the cursor at the end of the text blink, you need to import this css file
import 'react_simple_typist/dist/index.css'

class Example extends Component {
  render() {
    return <TypeText />
  }
}

Props

# Props# Des
paragraphA list of objcet with specific keys. Example [{data: 'Hello :)', fontSize: 60, fontColor: '#eee', delay: 1000}]
SpeedThe type speed for each character
lineClassNameYou can customize line class name. Default is 'lineClassName'

License

MIT © https://github.com/Ruoyu-Klaus

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago