1.1.6 • Published 2 years ago

typing-ind v1.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

typing-ind

Typing Animation Component for React

NPM JavaScript Style Guide

Install

npm install --save typing-ind

Intro

This is simple typing animation library for React. Only 1 tag component <Typed /> & 5 properties type, backspace, delay, duration, cursor. Tag component doesn't need value/closing tag and will return an empty tag containing an object value and a span element (if there is a cursor property).

Usage

import Typed from 'typing-ind' // import component from library

const App = () => {
  return (
    <h1>
      <Typed 
      type={['Test ', 'One', 'Two', 'Three']} // if no backspace animation just write 1 string only (no need to use array)
      backspace={[1, 2]} // contains the index value of the type property, if only 1 index no need to use array (will execute from the smallest index)
      delay={1000} // delay backspace animation (in milliseconds)
      duration={50} // duration of typing animation per character (in milliseconds). Default 100
      cursor={'blinking-text-cursor'} // style for blinking text cursor animation. can be filled directly with css properties or class names in your css file
      />
    </h1>
  );
}

License

MIT © madanadra

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

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