Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ type.js Public
forked from unixzii/type.js

A tool for creating typewriter simulations.

License

Notifications You must be signed in to change notification settings

deskui/type.js

Repository files navigation

A tool for creating typewriter simulations.

type.js allows you to type anything in terminal, and it will record the whole process of your typing, then generate a JSON that you can later replay it in your pages.

Install

$ git clone https://github.com/unixzii/type.js.git
$ npm install

Usage

To Record:

$ bin/type-cli

Pass option --help to view detail usage.

To Replay:

Import the supporting library at dist/client.js

const json = /* Grab your recorded JSON file */
const el = /* Grad your DOM element */
const speed = 1.5; // I would like to replay at 1.5x.
new TypePlayer(json, function (text) {
 el.innerText = text;
}, speed).play();

License

The project is available under the MIT license. See the LICENSE file for more info.

About

A tool for creating typewriter simulations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.8%
  • Shell 1.2%

AltStyle によって変換されたページ (->オリジナル) /