1.0.1 • Published 1 year ago

@vishwas.r/typewriter.js v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

TypeWriter.js

A lightweight, easy-to-implement JavaScript plugin to add animated typing effect for websites. Checkout Demo Here

TypeWriter.js on npmjs npm.io Featured on Openbase

Why TypeWriter.js

  • Light-Weight (1.6kb)
  • Vanilla JavaScript Library
  • Simple, Easy-to-Use
  • No Dependencies
  • Loop your string(s) continuously

TypeWriter.js Options

#OptionDescriptionOptions / Examples
1stringsArray of Strings["Developer.", "Freelancer.", "Content Writer.", "Photographer."]
2speedSpeed of Typing in ms100, 500, 1000, etc.
3delayDelay Before Erasing each String (in ms)1000, 5000, etc.
4loopBoolean to denote whether to loop the strings or nottrue, false
5cursorCustom Cursor"|", "...", etc.

Demo Code

<html>
<body>
<h1 id="typewriter"></h1>
<script src="typewriter.min.js"></script>
<script>
window.onload = function() {
	var typewriter = new TypeWriter("typewriter", {
		strings: ["TypeWriter.js", "Light-Weight", "Simple", "Easy to Use"],
		delay: 2000
	});
	typewriter.start();
}
</script>
</body>
</html>