talira

Typed.js

JavaScript library that animates text being typed, backspaced and retyped

open sourceGPL-3.0-or-laterfree

Typed.js is a JavaScript library that types: give it strings and it types them at the speed you set, backspaces what it typed and starts the next one, with options for loops, pauses, smart backspacing, cursor styling and HTML content. It installs from npm for use with build tools and React, or loads from a CDN. It's dual-licensed: GPL-3.0-or-later for personal and open source projects, or a paid commercial licence for one commercial project or for unlimited ones.

Problems it solves

  • animate a headline so it looks like it's being typed
  • show rotating phrases with a typewriter effect on my landing page
  • add a typewriter text effect to a React app

Features

  • types strings at a set speed and backspaces them
  • loops through several strings
  • cursor styling
  • works with npm build tools and React

Limitations

  • Using it in a closed-source commercial project means following the GPL-3.0 or buying a commercial licence1