<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-built-37-terminal-text-effects-in-pure-javascript-4epure32h" -->

---
title: I built 37 terminal text effects in pure JavaScript
description: A developer built tte.js, a dependency-free browser library with 37 Canvas-based text animation effects, porting the catalog from a Python terminal project...
canonical: https://daily.dev/posts/i-built-37-terminal-text-effects-in-pure-javascript-4epure32h
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I built 37 terminal text effects in pure JavaScript | daily.dev
og:description: A developer built tte.js, a dependency-free browser library with 37 Canvas-based text animation effects, porting the catalog from a Python terminal project...
og:url: https://daily.dev/posts/i-built-37-terminal-text-effects-in-pure-javascript-4epure32h
og:image: https://api.daily.dev/og/posts/4EPure32H.png
og:image:alt: I built 37 terminal text effects in pure JavaScript
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I built 37 terminal text effects in pure JavaScript

**[Flavio Copes](https://daily.dev/sources/flaviocopes)** · 4 min read · 34 upvotes · 4 comments

## Summary

A developer built tte.js, a dependency-free browser library with 37 Canvas-based text animation effects, porting the catalog from a Python terminal project called TerminalTextEffects. The library reads text from an HTML element, builds a character grid, and renders animated cells and particles on a Canvas layered over the original element, keeping the source accessible to screen readers. Effects share one API but implement their own timing and movement, and a seeded random function makes animations reproducible. A live gallery lets you preview and tweak speed, palette, and seed for all effects, and the project is available as source, tests, and a demo bundle under MIT license.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://flaviocopes.com/terminal-text-effects-javascript>

## Questions this post answers

### How can I animate text with terminal-style effects like matrix or decrypt in the browser without a framework?

A dependency-free JavaScript library called tte.js reads text from an HTML element, converts it into a character grid, and draws animated cells and particles on a Canvas layered over the original text, so the source element still controls font, layout, and accessibility for screen readers. It ships with 37 effects including matrix, burn, decrypt, fireworks, and rain, all sharing one API with configurable duration, colors, and a seeded random function for repeatable results.

_Developers exploring Canvas-based text effects can find tools like this through daily.dev._

### Where did the idea for terminal text effect animations in JavaScript come from?

The concept traces back to a terminal command-line tool called ttfx and a larger Python project, TerminalTextEffects, which catalogs dozens of animations for the command line. A developer ported the full 37-effect catalog into a browser-native Canvas engine called tte.js after seeing a shared collection of terminal text effects, aiming to see how far plain JavaScript could replicate them without WebAssembly or a framework.

_Anyone tracking creative coding ports across ecosystems can follow projects like this via daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@agustinbarrientos** · 2 upvotes

> Thirty-seven terminal effects feel like exactly the right amount of overkill

**@zenotds** · 1 upvotes

> Very niche, but also incredibly cool!!!
> And i love that it's a dependency free thing and not just another shadcn library, so people that is not into react or js frameworks can still use it.
> Great job, need more projects like this.

## Similar posts on daily.dev

- [Canvas UI Ships 35 HTML-in-Canvas Components That Run WebGL and WebGPU Effects Over Live DOM](https://daily.dev/posts/canvas-ui-ships-35-html-in-canvas-components-that-run-webgl-and-webgpu-effects-over-live-dom-tfekmd60e) · InfoQ · 0 upvotes · 0 comments
- [Creating 3D text engine in the browser](https://daily.dev/posts/creating-3d-text-engine-in-the-browser-9zfk5d8hf) · ITNEXT · 48 upvotes · 4 comments
- [Text.js: Build full-stack React apps that render inside console.log](https://daily.dev/posts/text-js-build-full-stack-react-apps-that-render-inside-console-log-24boewld9) · Hacker News · 2 upvotes · 0 comments
- [Typewriter Effect : Frontend Coding Exercises](https://daily.dev/posts/typewriter-effect-frontend-coding-exercises-zbpkrehxs) · Kirupa · 2 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/i-built-37-terminal-text-effects-in-pure-javascript-4epure32h)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"I built 37 terminal text effects in pure JavaScript","url":"https://daily.dev/posts/i-built-37-terminal-text-effects-in-pure-javascript-4epure32h","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-built-37-terminal-text-effects-in-pure-javascript-4epure32h"},"datePublished":"2026-08-30T07:30:23.064Z","dateModified":"2026-09-14T07:20:28.227Z","description":"A developer built tte.js, a dependency-free browser library with 37 Canvas-based text animation effects, porting the catalog from a Python terminal project...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0df45df04d63a815dda06326c4df3612?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0df45df04d63a815dda06326c4df3612?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Flavio Copes","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Flavio Copes","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9","url":"https://daily.dev/sources/flaviocopes"},"commentCount":4,"discussionUrl":"https://daily.dev/posts/i-built-37-terminal-text-effects-in-pure-javascript-4epure32h","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":34},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"javascript","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Flavio Copes","item":"https://daily.dev/sources/flaviocopes"},{"@type":"ListItem","position":3,"name":"I built 37 terminal text effects in pure JavaScript"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/i-built-37-terminal-text-effects-in-pure-javascript-4epure32h","comment":[{"@type":"Comment","text":"Thirty-seven terminal effects feel like exactly the right amount of overkill","datePublished":"2026-09-01T02:33:52.938Z","url":"https://daily.dev/posts/4EPure32H#c-gsChfZRTd","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"Very niche, but also incredibly cool!!!\nAnd i love that it’s a dependency free thing and not just another shadcn library, so people that is not into react or js frameworks can still use it.\nGreat job, need more projects like this.","datePublished":"2026-08-31T07:19:36.588Z","url":"https://daily.dev/posts/4EPure32H#c-76c90KWo0","author":{"@type":"Person","name":"Francesco Selva","url":"https://daily.dev/zenotds","image":"https://lh3.googleusercontent.com/a/ACg8ocIpqD53L1hQKWDfCVp2Ism-fJxG-bPsCDBdtXDvbOINuMjP0oke=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/i-built-37-terminal-text-effects-in-pure-javascript-4epure32h#faq","mainEntity":[{"@type":"Question","name":"How can I animate text with terminal-style effects like matrix or decrypt in the browser without a framework?","acceptedAnswer":{"@type":"Answer","text":"A dependency-free JavaScript library called tte.js reads text from an HTML element, converts it into a character grid, and draws animated cells and particles on a Canvas layered over the original text, so the source element still controls font, layout, and accessibility for screen readers. It ships with 37 effects including matrix, burn, decrypt, fireworks, and rain, all sharing one API with configurable duration, colors, and a seeded random function for repeatable results. Developers exploring Canvas-based text effects can find tools like this through daily.dev."}},{"@type":"Question","name":"Where did the idea for terminal text effect animations in JavaScript come from?","acceptedAnswer":{"@type":"Answer","text":"The concept traces back to a terminal command-line tool called ttfx and a larger Python project, TerminalTextEffects, which catalogs dozens of animations for the command line. A developer ported the full 37-effect catalog into a browser-native Canvas engine called tte.js after seeing a shared collection of terminal text effects, aiming to see how far plain JavaScript could replicate them without WebAssembly or a framework. Anyone tracking creative coding ports across ecosystems can follow projects like this via daily.dev."}}]}
```

