Skip to content
Sydney205Public

About

Create typing effect on console. TypeGlide adds a dynamic touch by simulating a gradual appearance of text as if it's being typed

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

51 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typeglide

Typing SVG

Installation

Quick Start

Speeds and Delays

Loops

Contributions

Extra features


📦 Installation

install with npm:

npm install typeglide

🚀 Quick start

Jump into action

import typeglide from "typeglide";

var myArray = [
  "Good morning",
  "How are you today?",
  "Would you like a cup of coffee?",
];

typeglide({
  strings: myArray,
});

Speeds and Delays ⏱⚡

Customize typing and backspacing speed including delays

import typeglide from "typeglide";

typeglide({
  // Strings to be typed
  strings: myArray,
  // Typing speed
  typeSpeed: 70,
  // Backspacing speed
  backSpeed: 50,
  // start Delay
  startDelay: 10,
  // Backspacing delay
  backDelay: 100,
});

Loops 🔁

Make loops...

import typeglide from "typeglide";

typeglide({
  strings: myArray,
  // Activating loop
  loop: true,
  // Number of times you want to loop
  loopCount: 3,
});

Extra features:


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

Contributions 🤝🏻

Have any features you wish to add?... Make a pull request to the repository on github.
Feel free to create issues or provide feedbacks!.

Author:

Sydney205

License 📄

Copyright (c) 2024 Dieke Sydney

About

Create typing effect on console. TypeGlide adds a dynamic touch by simulating a gradual appearance of text as if it's being typed

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages