typingjs-js
v1.0.3
Published
A Lightweight styling extension for typing letters
Downloads
3
Readme
TypingJS
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>
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