Don't miss out on this year's npm Pride t-shirt designs!Order your favorites here »


6.0.3 • Public • Published


The Most Versatile JavaScript Animated Typing Utility on the Planet

Build Status npm downloads Tweet


TypeIt is the most versatile JavaScript typewriter effect utility on the planet. With its simple yet flexible configuration, you're empowerd to type single or multiple strings that break lines, delete & replace each other, easily handle string containing HTML, loop, and a whole lot more.

For more advanced, controlled typing effects, TypeIt comes with companion functions that can be chained to control your typing down to a single character or millisecond, enabling you to type an dynamic narrative, with complete reign over speed changes, line breaks, deletions, and pauses.

Key Features

  • Choose to start typing only when your target element becomes visible on the screen.
  • Loop your string(s) continuously.
  • Define your strings via an options object or in the HTML (a useful fallback in case user doesn't have JavaScript enabled, as well as for SEO).
  • Use a single TypeIt instance to target several different elements on a page.
  • Handle HTML tags (while preserving attributes) with ease.
  • Use companion functions to chain individual commands together to fine tune your typing.
  • Ready to be included via JS module, or as a separate script loaded on your page.
  • No dependencies!

License Options

Using TypeIt for an open source or personal project is completely free. To use it in a commercial project, purchase a single license, or an unlimited license that'll never expire, no matter how many times you use it.


See some more examples and try out the sandbox at


All of TypeIt's documentation can be found at


Please do! The code is available on Github. Check out the file to see how to get started.

Know of a Neat Site Using TypeIt?

I'd love to see and share it! Send me a message or tweet at me.

Need Help?

If you're working with a custom implementation of TypeIt and would like some help, I'm available for hire. Get in touch!


GPL-2.0 © Alex MacArthur


npm i typeit

Downloadsweekly downloads









last publish


  • avatar
Report a vulnerability