Microwriter
A tiny library that simulates the typewriter animation for JavaScript and TypeScript
Installation
- Use pre-compiled modules in the
dist/
directory. - Use pika.dev to import the module without bundling:
; const writer = ;
- Use npm or yarn:
$ npm install microwriter
Example
A working example can be found in the example/
directory. The usage is very straightforward:
// Find a target element to write text intoconst target = document; // Initialize a writerconst writer = ; // Start writingwriterstart; // Pause writingwriter; // Replace lines and restartwriter;
License
MIT.