Skip to content

A react typewriter effect with beautiful animations and emoji support

Notifications You must be signed in to change notification settings

oliverrees/magic-typewriter

Repository files navigation

Magic Typewriter

Demo Image

A typewriter for react that includes:

  • Emoji support (via the amazing Grapheme Splitter)
  • Smooth scrolling with CSS opacity
  • No multi line snapping

Installation

Add magic typewriter to your React project with npm

npm install --save magic-typewriter

Basic Usage

Include magic typewriter and drop into any component

import { MagicTypewriter } from 'magic-typewriter';

function App() {
  return (
    <div className="App">
     <MagicTypewriter 
     message={"Hello there 👋\nHow are you doing today?"}
     ></MagicTypewriter>
    </div>
  );
}

Options

There are several parameters you can use to customise magic typewriter

     <MagicTypewriter 
     message={"Hello there 👋\nHow are you doing today?"}
     splitLines={true}
     splitString={/\n/}
     onComplete={() => console.log('Done')}
     isLoading={false}
     charDelay={30}
     lineDelay={500}
     ></MagicTypewriter>

About

A react typewriter effect with beautiful animations and emoji support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published