ASCII MurmurASCII Murmur
Text that assembles itself out of ASCII particles, like a flock of starlings settling into shape, then ripples away from the cursor. Works as a heading or paragraph with charset, color, entrance, and hover controls.
Amines UI
Particles find their place. One glyph at a time.
Installation
- 1
Install the component:
npx shadcn@latest add https://ui.amines.fun/registry/ascii-murmur.json - 2
Usage:
jsxapp/page.jsx
1<ASCIIMurmur as="h1" text="Build something beautiful" className="text-neutral-900" />
Props
| Prop | Type | Default | Description | Required |
|---|---|---|---|---|
| text | string | undefined | Text to render. makes a line break. Or pass a string as children. | No |
| as | keyof JSX.IntrinsicElements | "div" | Element to render: h1, h2, p, span… | No |
| className | string | undefined | Tailwind classes. text-* sets the particle colour. | No |
| fontSize | number | 96 | Font size in px. | No |
| fontWeight | number | string | 700 | Font weight of the source text. | No |
| fontFamily | string | "inherit" | Any CSS font-family, var(--font-x) included. | No |
| lineHeight | number | 1.1 | Line height multiplier. | No |
| letterSpacing | number | 0 | Tracking in em, e.g. -0.03. | No |
| align | "left" | "center" | "right" | "left" | Text alignment. | No |
| fit | boolean | true | Shrink the font on narrow screens so no word is cut off. | No |
| charset | "classic" | "blocks" | "binary" | "hex" | "matrix" | "code" | "dots" | string | "classic" | Preset name, or custom characters ordered light to dense. | No |
| charMode | "auto" | "ramp" | "random" | "auto" | ramp shades by letter coverage; random picks any glyph. | No |
| gap | number | "auto" | "auto" | Grid spacing in px. Smaller = more particles, crisper text. | No |
| charSize | number | undefined | Glyph size in px. Defaults to gap × 1.5. | No |
| charFont | string | undefined | Font used for the ASCII glyphs. | No |
| charWeight | number | 500 | Weight of the ASCII glyphs. | No |
| threshold | number | 0.18 | Min. letter coverage (0-1) that spawns a particle. | No |
| maxParticles | number | 9000 | Performance cap. Gap grows automatically past this. | No |
| seed | number | 7 | Change for a different (but repeatable) random layout. | No |
| color | string | string[] | "currentColor" | One colour, or an array for a gradient. | No |
| gradientAxis | "x" | "y" | "diagonal" | "x" | Direction of the gradient. | No |
| hoverColor | string | undefined | Colour particles blend to under the cursor. | No |
| opacity | number | 1 | Overall opacity (0-1). | No |
| from | "scatter" | "center" | "top" | "bottom" | "left" | "right" | "edges" | "vortex" | "scatter" | Where particles start. | No |
| order | "random" | "left-to-right" | "right-to-left" | "top-to-bottom" | "bottom-to-top" | "center-out" | "edges-in" | "random" | Arrival order. | No |
| duration | number | 2.8 | Total seconds for the whole formation. | No |
| delay | number | 0 | Seconds to wait before starting. | No |
| stagger | number | 0.55 | 0 = everyone together, 0.9 = a long wave. | No |
| ease | string | number[] | function | "smooth" | Preset, cubic-bezier array, or easing function. | No |
| curve | number | 0.6 | How much particles arc along the way (0 = straight lines). | No |
| spread | number | 1 | How far away particles start (0-2). | No |
| flightScale | number | 0.6 | Glyph scale mid-flight (grows to 1 as it lands). | No |
| scramble | boolean | true | Glyphs flicker through characters until they land. | No |
| scrambleFps | number | 14 | Flicker speed. | No |
| shimmer | number | 0.2 | Idle light-wave across the settled text (0 = off). | No |
| bleed | number | 48 | Px particles may travel outside the box. | No |
| active | boolean | true | false dissolves the text back into particles. | No |
| trigger | "view" | "mount" | "view" | Form when scrolled into view, or immediately. | No |
| once | boolean | true | false = dissolve when scrolled out, re-form when back. | No |
| viewAmount | number | 0.25 | Fraction (0-1) that must be visible to trigger. | No |
| hoverEffect | "repel" | "attract" | "swirl" | "glow" | "none" | "repel" | What the cursor does. | No |
| hoverRadius | number | 120 | Cursor influence radius in px. | No |
| hoverStrength | number | 1 | Push/pull intensity. | No |
| hoverScale | number | 0.35 | Extra glyph growth under the cursor. | No |
| hoverScramble | boolean | true | Glyphs flicker under the cursor. | No |
| hoverBounce | number | 0.4 | 0 = silky settle, 1 = springy wobble. | No |
| clickBurst | boolean | false | Click / tap sends a shockwave through the particles. | No |
| maxDpr | number | 2 | Cap on canvas pixel ratio (lower = faster on retina). | No |
| respectReducedMotion | boolean | true | Skip animation when the OS asks for it. | No |
| onFormed | () => void | undefined | Fires when the text has fully assembled. | No |
| onDissolved | () => void | undefined | Fires when it has fully dispersed. | No |
| ref | { replay: () => void; burst: (x?, y?) => void } | undefined | Imperative handle to replay the animation or trigger a burst. | No |