Baktiyar Ablaikhan

Glyph Matrix

Source
Magic UI ↗
Author
Magic UI
Licence
MIT

Loading…

A canvas of monospace glyphs that keep mutating and fade downward.

Code

"use client";

import { GlyphMatrix } from "@/lab/magicui/ui/glyph-matrix";

export default function GlyphMatrixDemo() {
  return (
    <div className="relative h-full w-full overflow-hidden">
      <GlyphMatrix glyphs="01·•+*/\<>=" cellSize={14} mutationRate={0.04} interval={90} fadeBottom={0.6} color="#000000" />
    </div>
  );
}
Prompt

Build "Glyph Matrix", a background animation. What it does: A canvas of monospace glyphs that keep mutating and fade downward. Write it as a single self-contained React component in TypeScript that fills its parent (w-full h-full), styled with Tailwind CSS. Technique: an HTML canvas, a requestAnimationFrame loop. It sits on a light background, in a 16:10 frame. Respect prefers-reduced-motion with a still state, pause work when the element is off screen, and keep it accessible. Original: https://magicui.design/docs/components/glyph-matrix (Magic UI, MIT).