1.0.3 • Published 5 years ago

typingjs-js v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

TypingJS npm.io npm.io npm.io

TypingJS is a small, lightweight and easy to use library for typing strings on your website.

Install

$ npm install --save typingjs

Usage

index.js

import TypingJs from 'typingjs-js';

const typing = new TypingJs({
	selector: 'typingjs',
	message: 'Hello from TypingJS!'
});

typing.init();

index.html

<body>
	<div id="typingjs"></div>
	<script src="index.js"></script>
</body>

npm.io

Settings

TypingJS has a few additional options which can you set:

const typed = new TypingJs({
    selector: string, // Tag ID, default: `typingjs`
    message: string, // Text to display, default: 'Test TypingJS...'
    ms: number, // Speed of typing in milliseconds, default: 100
    remove: boolean, // Whether delete text in backspace mode, default: false
    infinity: boolean // Infinity loop, default: false
});

License

MIT

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago