Ascii Swell
backgroundProEt hav af tegn i monospace, der rulles af lagdelte støjbølger, med krusninger fra markøren.
Introduktionspris til og med 31. december 2026. Derefter 79 €.
Preview
Live demo. Temaet skifter selve demoen.
Kode
Koden er låst
Ascii Swell er en del af Manniche UI Pro. En nøgle åbner kildekoden til alle 66 effekter.
Køb · 49 €49 € · Introduktionspris til og med 31. december 2026. Derefter 79 €.
- Engangsbetaling
- Én udvikler
- Log ind og opret din nøgle med det samme
- Ingen moms (§ 19 UStG)
Har du en nøgle? Hent koden med CLI eller MCP.
Nøglen ligger i MANNICHE_PRO_KEY, aldrig i koden eller i adressen. Sådan sætter du den op
npx shadcn@latest add @manniche-pro/ascii-swellclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
AsciiSwellProps
| Prop | Type | Standard | Hvad den gør |
|---|---|---|---|
ramp | string | ' .:-=+*#%@' | Characters from the quietest to the loudest. The first is the empty end of the scale; a space leaves the cell blank. |
invert | boolean | false | Flip the ramp, so the waves are drawn as dark troughs on a dense field instead of bright crests on a sparse one. |
direction | SwellDirection | 'right' | The way the waves travel across the field. |
cellSize | number | 13 | Font size of a character cell in CSS pixels. Smaller cells give a finer picture and cost more to draw. |
fontWeight | number | 500 | Weight of the monospace font, 100 to 900. |
fontFamily | string | 'ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace' | Font stack for the characters. It should be monospace so the grid stays even. |
color | string | 'currentColor' | Colour of the characters. Any CSS colour, including var(--x); defaults to the inherited text colour. |
speed | number | 1 | How fast the waves travel. 0 freezes them. |
tension | number | 1 | How strongly the waves are bent and kinked by the slow noise underneath, 0 to 2. 0 gives straight bands. |
scale | number | 1 | Size of the waves. Above 1 they are wider and calmer, below 1 tighter. |
intensity | number | 1 | How much of the ramp the waves use, 0 to 2. Low values stay close to the middle of the ramp. |
rippleForce | number | 1 | Strength of the ripples the pointer makes, 0 to 3. 0 turns them off. |
rippleRadius | number | 150 | How far the ripples reach, in CSS pixels. |
interactive | boolean | true | When false the pointer is ignored. |
opacity | number | 1 | Overall opacity of the characters, 0 to 1. |
label | string | – | Accessible description. When set the canvas becomes role="img" with this label (children stay accessible); otherwise it is decorative. |
children | ReactNode | – | Content drawn on top of the field. |
className | string | – | – |
A11y
Skærmlæser
Decorative by default: the canvas is aria-hidden. A label prop gives it role="img" and that name. Children render outside the canvas, so they stay reachable by screen readers and keyboard.
Mindre bevægelse
Under reduced motion one still frame is drawn and pointer ripples are not created. Otherwise the canvas animates only while it is on screen and the tab is visible.
Andet
If a 2D canvas context is not available, a gradient replaces the canvas.