1.3.1 • Published 2 years ago

@nsmichelj/react-typewriter v1.3.1

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

@nsmichelj/react-typewriter

React library to create typewriter animations.

Installation

npm install @nsmichelj/react-typewriter

Usage

import Typewriter from "@nsmichelj/react-typewriter";
function App() {
  return <Typewriter text="Hello world" />;
}

export default App;

Props

Prop NameTypeDefaultDescription
textstringRequiredThe text to be displayed with the typewriter effect.
delaynumber100The initial delay before typing starts (in milliseconds).
typingSpeednumber100The time between typing each character (in milliseconds).
loopbooleanfalseIf true, the typewriter effect will loop after finishing the text.
delayOnRestartnumber1000The delay before restarting the typewriter effect when looping (in milliseconds).
cursorbooleanfalseIf true, a blinking cursor will be displayed at the end of the typing text.
typingBackspaceAnimationbooleanfalseIf true, a backspace animation will be triggered, deleting the text character by character. This will only execute once if loop is false.
typingBackspaceSpeednumber100The speed of the backspace animation, in milliseconds per character.
classNamestring""CSS class to apply to the root element.
styleobject{}Inline styles to apply to the root element.
1.3.1

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago