<asciify-bg>

Animated ASCII backgrounds for any website. One script tag, zero dependencies, no tracking. Matrix rain, fire, aurora, DNA and 10 more.

Add to your site in 10 seconds

Paste these two lines anywhere in your HTML. As a direct child of <body> it becomes a fixed full-page background behind your content.

index.html
<script src="https://asciify.art/bg.js"></script>
<asciify-bg type="rain" color="green"></asciify-bg>

Inside any other element it fills that element: give the parent position: relative (and a height), and put your content after it with position: relative so it stays on top.

Full-page mode sits at z-index: -1: keep your page colour on <html> and leave <body> transparent, or an opaque body background will cover it (the element logs a console hint if it does).

Playground

type
color green
fps
Your snippet
<script src="https://asciify.art/bg.js"></script>
<asciify-bg type="rain" color="green"></asciify-bg>

React / Vue / Svelte

No wrappers needed: it is a standard custom element, so every framework renders it like a <div>. The samples follow your playground settings.

Hero.jsx
// npm i asciify-bg  (or add the bg.js script tag once)
import "asciify-bg";

export function Hero() {
  return (
    <section style={{ position: "relative", minHeight: 400 }}>
      <asciify-bg type="rain" color="green"></asciify-bg>
      <h1 style={{ position: "relative" }}>Hello</h1>
    </section>
  );
}

Attributes

All optional, all live: change one from JavaScript and the animation follows. Invalid values fall back to the default.

attributevaluesdefault
typewave, rain, stars, pulse, noise, grid, aurora, silk, void, morph, fire, circuit, dna, terrainrain
colorgreen, cyan, pink, amber, purple, mint, white, red or #hexgreen
speed0.1 to 3 (animation speed multiplier)1
size6 to 24 (font size in px; smaller = denser)10
fps1 to 60 (frame-rate cap)30
pausedboolean attribute; paused="false" playsoff
background#hex, preset name or transparent#0a0a0a
badgebadge="false" hides the small asciify.art linktrue

Clean by design

Source & license

MIT licensed. Read the unminified build at asciify.art/bg.js. Prefer an iframe? Every background page also has a Copy embed button.