install with npm:
npm install typeglide
Jump into action
const typeglide = require("typeglide");
var myArray = [
"Good morning",
"How are you today?",
"Would you like a cup of coffee?",
];
typeglide({
strings: myArray,
});
Customize typing and backspacing speed including delays
const typeglide = require("typeglide");
typeglide({
// Strings to be typed
strings: myArray,
// Typing speed
typeSpeed: 70,
// Backspacing speed
backSpeed: 50,
// start Delay
startDelay: 10,
// Backspacing delay
backDelay: 100,
});
Make loops...
const typeglide = require("typeglide");
typeglide({
strings: myArray,
// Activating loop
loop: true,
// Number of times you want to loop
loopCount: 3,
});
Name | Required | Default | Description |
---|---|---|---|
backspace(bool) | no | true | Disable backspace to type each string on a new line |
backspaceLastString(bool) | no | true | Whether to backspace last string on the array |
shuffle(bool) | no | false | Shuffle the strings on the array |
singleLine(bool) | no | false | Types strings on a single line |
seperator(string) | when singleLine is activated |
empty string | Seperate strings on single line |
Have any features you wish to add?... Make a pull request to the repository on github.
Feel free to create issues or provide feedbacks!.
Copyright (c) 2024 Dieke Sydney