An open API service indexing awesome lists of open source software.

https://github.com/magalhini/react-typewriter-js

Simple vanilla JS script to simulate text typewriting effect.
https://github.com/magalhini/react-typewriter-js

react split typewriter typewriting typing vanilla word

Last synced: 11 months ago
JSON representation

Simple vanilla JS script to simulate text typewriting effect.

Awesome Lists containing this project

README

          

React Typewriter
=============

![ex](https://raw.githubusercontent.com/magalhini/typewriter-js/master/example.gif)

A small helper script that simulates a typewriting text effect on a webpage.

## Dependencies
There are two versions of this project:

- A plain vanilla JS (no jQuery, no libraries)
- An ES6 / React Component version

## Options
- Custom speed
- Custom random speed
- Different messages (React only)
- Custom tag to display the element (React only)

## Sample Usage (vanilla version)

```js
var el = document.querySelectorAll('h1')[0];
var el2 = document.querySelectorAll('h2')[0];

Typewriter.start(el, 50, {
random: true,
callback: function () {
console.log('i am a callback');
}
});

Typewriter.start(el2, 75);
```

## Sample Usage (React version)

```js
import Typewriter from './Typewriter';

```