1.0.17 • Published 4 years ago

@isaac.scarrott/react-type-it v1.0.17

Weekly downloads
20
License
GPL-3.0
Repository
github
Last release
4 years ago

React-Type-It

Simulate typing in a react component. Supports delay backspace and timing. Minimal dependency

Install

npm i @isaac.scarrott/react-type-it

Usage

import TypeIt, {TypeItInput} from '@isaac.scarrott/react-type-it';
<TypeIt
  loop
  className='typeItDemo'
  style={{ color: "SteelBlue", fontSize: "40px" }}
>
  <TypeItInput>
    Hi, this is a react type it demo
  </TypeItInput>
  <TypeItInput backspace={28} delay={2000}>
    I hope you like this packgae
  </TypeItInput>
  <TypeItInput backspace={3} delay={300} duration={300}>
    age
  </TypeItInput>
  <TypeItInput backspace={28} delay={2000}>
    this is also my first NPM package
  </TypeItInput>
  <TypeItInput delay={2000}></TypeItInput>
</TypeIt>

alt text

Props

ComponentNameTypeDefaultDescription
TypeItloopbooleanfalseDescribes if the type animation loops
TypeItstyleobject{}Styles to be put on the text
TypeItInputdurationnumber2000Length of the animation (without delay) in ms
TypeItInputdelaynumber0Delay that the animation after which the animation will start
TypeItInputbackspacenumber0Number of characters that the component will backspace before typing
1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago