Dust Type
textProPartikel-Typografie, die sich beim Scrollen oder Hover zu Buchstaben sammelt, sich mit Federphysik um den Mauszeiger zerstreut und erneut abgespielt werden kann.
Einführungspreis bis einschließlich 31. Dezember 2026. Danach 79 €.
Vorschau
Live-Demo. Das Theme schaltet die Demo selbst um.
Code
Der Code ist gesperrt
Dust Type gehört zu Manniche UI Pro. Ein Schlüssel öffnet den Quellcode aller 66 Effekte.
Kaufen · 49 €49 € · Einführungspreis bis einschließlich 31. Dezember 2026. Danach 79 €.
- Einmalzahlung
- Ein Entwickler
- Melde dich an und erstelle deinen Schlüssel sofort
- Keine Umsatzsteuer (§ 19 UStG)
Hast du einen Schlüssel? Hol den Code mit der CLI oder per MCP.
Der Schlüssel liegt in MANNICHE_PRO_KEY, nie im Code oder in der Adresse. So richtest du ihn ein
npx shadcn@latest add @manniche-pro/dust-typeclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
DustTypeProps
| Prop | Typ | Standard | Was sie tut |
|---|---|---|---|
text erforderlich | string | – | The text to show. It stays in the page as real, selectable text; the particles are drawn on top of it. |
trigger | 'viewport' | 'hover' | 'manual' | 'viewport' | What makes the dust gather into letters. viewport when it scrolls into view, hover while the pointer (or a finger) is over it and it drifts apart again afterwards (it also gathers while it has keyboard focus, so it becomes focusable), manual only through the ref handle. With manual the cloud starts invisible (idleOpacity 0) and the text stays hidden until assemble() or replay() is called; set idleOpacity to keep some of it visible. |
once | boolean | true | With viewport, play only the first time it is seen. When false, it scatters off screen and plays again on the next visit. |
density | number | 0.6 | How many particles make up the letters, from 0.1 (sparse grains) to 1 (dense, almost solid). |
particleSize | number | 2.2 | Diameter of a particle in CSS pixels. |
colors | string[] | – | Particle colours, picked at random per particle. Any CSS colour, including var(--x). Defaults to the inherited text colour. |
fit | boolean | false | Scale the type so the line fills the width of the wrapper. The wrapper then needs a width, e.g. w-full. |
maxFontSize | number | 360 | Largest font size when fitting, in CSS pixels. |
duration | number | 1500 | How long one particle takes to land, in milliseconds. |
stagger | number | 800 | How much the start times are spread out, in milliseconds. Particles are released in a sweep from left to right. |
leaveDelay | number | 220 | With hover, how long to wait after the pointer leaves before the text drifts apart, in milliseconds. |
idleOpacity | number | – | How visible the dust cloud is before it gathers, from 0 to 1. With hover it is worth keeping some. |
repelRadius | number | 110 | How far from the pointer particles are pushed away, in CSS pixels. 0 turns the repulsion off. |
repelStrength | number | 1 | How hard they are pushed. 1 is a clear bubble around the pointer. |
as | 'span' | 'div' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'span' | Which element to render, so a heading stays a heading. |
className | string | – | Classes for the wrapper. Set the font, weight and colour here (and the size, unless fit). |
ref | Ref<DustTypeHandle> | – | Handle for replay(), assemble() and disperse(). |
A11y
Tastatur
With trigger="hover" the wrapper takes one tab stop with a visible focus ring, and the dust gathers into letters while it has focus and drifts apart again after Tab moves away. The other triggers add no tab stop.
Screenreader
The real text stays in the page and is read once, in the element chosen with as. The particle canvas is aria-hidden and ignores the pointer. With trigger="manual" the text is only hidden visually, so screen readers still read it before assemble() is called.
Reduzierte Bewegung
Under reduced motion no particles are drawn and the plain text shows at once. Otherwise the loop runs only while the particles move and the text is on screen.