ASCII 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. 1

    Install the component:

    npx shadcn@latest add https://ui.amines.fun/registry/ascii-murmur.json
  2. 2

    Usage:

    jsx

    app/page.jsx

    <ASCIIMurmur as="h1" text="Build something beautiful" className="text-neutral-900" />

Props

PropTypeDefaultDescriptionRequired
textstringundefinedText to render. makes a line break. Or pass a string as children.No
askeyof JSX.IntrinsicElements"div"Element to render: h1, h2, p, span…No
classNamestringundefinedTailwind classes. text-* sets the particle colour.No
fontSizenumber96Font size in px.No
fontWeightnumber | string700Font weight of the source text.No
fontFamilystring"inherit"Any CSS font-family, var(--font-x) included.No
lineHeightnumber1.1Line height multiplier.No
letterSpacingnumber0Tracking in em, e.g. -0.03.No
align"left" | "center" | "right""left"Text alignment.No
fitbooleantrueShrink 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
gapnumber | "auto""auto"Grid spacing in px. Smaller = more particles, crisper text.No
charSizenumberundefinedGlyph size in px. Defaults to gap × 1.5.No
charFontstringundefinedFont used for the ASCII glyphs.No
charWeightnumber500Weight of the ASCII glyphs.No
thresholdnumber0.18Min. letter coverage (0-1) that spawns a particle.No
maxParticlesnumber9000Performance cap. Gap grows automatically past this.No
seednumber7Change for a different (but repeatable) random layout.No
colorstring | string[]"currentColor"One colour, or an array for a gradient.No
gradientAxis"x" | "y" | "diagonal""x"Direction of the gradient.No
hoverColorstringundefinedColour particles blend to under the cursor.No
opacitynumber1Overall 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
durationnumber2.8Total seconds for the whole formation.No
delaynumber0Seconds to wait before starting.No
staggernumber0.550 = everyone together, 0.9 = a long wave.No
easestring | number[] | function"smooth"Preset, cubic-bezier array, or easing function.No
curvenumber0.6How much particles arc along the way (0 = straight lines).No
spreadnumber1How far away particles start (0-2).No
flightScalenumber0.6Glyph scale mid-flight (grows to 1 as it lands).No
scramblebooleantrueGlyphs flicker through characters until they land.No
scrambleFpsnumber14Flicker speed.No
shimmernumber0.2Idle light-wave across the settled text (0 = off).No
bleednumber48Px particles may travel outside the box.No
activebooleantruefalse dissolves the text back into particles.No
trigger"view" | "mount""view"Form when scrolled into view, or immediately.No
oncebooleantruefalse = dissolve when scrolled out, re-form when back.No
viewAmountnumber0.25Fraction (0-1) that must be visible to trigger.No
hoverEffect"repel" | "attract" | "swirl" | "glow" | "none""repel"What the cursor does.No
hoverRadiusnumber120Cursor influence radius in px.No
hoverStrengthnumber1Push/pull intensity.No
hoverScalenumber0.35Extra glyph growth under the cursor.No
hoverScramblebooleantrueGlyphs flicker under the cursor.No
hoverBouncenumber0.40 = silky settle, 1 = springy wobble.No
clickBurstbooleanfalseClick / tap sends a shockwave through the particles.No
maxDprnumber2Cap on canvas pixel ratio (lower = faster on retina).No
respectReducedMotionbooleantrueSkip animation when the OS asks for it.No
onFormed() => voidundefinedFires when the text has fully assembled.No
onDissolved() => voidundefinedFires when it has fully dispersed.No
ref{ replay: () => void; burst: (x?, y?) => void }undefinedImperative handle to replay the animation or trigger a burst.No