Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/awran5/typewriting

Lightweight JavaScript plugin for adding nice, customizable Typewriting effect using custom HTML5 attributes.
https://github.com/awran5/typewriting

es6 html5-attribute lightweight-javascript-plugin typewriter-effect typewriting

Last synced: 13 days ago
JSON representation

Lightweight JavaScript plugin for adding nice, customizable Typewriting effect using custom HTML5 attributes.

Awesome Lists containing this project

README

        

# TypeWriting

TypeWriting is a tiny lightweight JavaScript plugin for adding nice, customizable Typewriting effect using custom HTML5 attributes. This plugin is written in native JavaScript ES6 and does not requires any dependencies!

Inspired by [TraversyMedia](https://www.traversymedia.com/). I've made some changes and modifications to suit my needs, if you have an issue/idea, please feel free to fork the repo or send me a push request and i'll be happy to push it.

## Usage

1. Load the minified version `typewriting.min.js` by placing the script tag before the closing Body tag for better page speed performance.
```html

```
2. Create an empty `span` tag with class name `typewrite`. You're able to pass the options using the custom HTML5 attributes:

- **data-loop:** Stop the typing loop. Value shoud be `yes` or `no`
- **data-speed:** Typing speed in millisecond. Default value is `100`
- **data-delay:** Time delay after word is complete in millisecond. Default value is `1000`
- **data-words:** Words to add separated by comma i.e. `["...","...","..."]`

```html

Hey, I'm


```
## [Demo](https://awran5.github.io/typewriting/)