Weight Field
textProDie Strichstärke jedes Buchstabens einer variablen Schrift folgt dem Abstand des Mauszeigers, mit einstellbarer Reichweite und weichem Ein- und Ausblenden. Benötigt eine Schrift mit wght-Achse.
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
Weight Field 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/weight-fieldclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
WeightFieldProps
| Prop | Typ | Standard | Was sie tut |
|---|---|---|---|
text erforderlich | string | – | The text. Each letter gets its own weight. |
from | number | 200 | Weight of a letter the pointer is far away from, 100 to 900. |
to | number | 900 | Weight of the letter right under the pointer, 100 to 900. Can be lower than from to thin letters out instead. |
reach | number | 130 | How far the pointer's pull reaches, in pixels. Letters beyond it stay at from; the pull fades smoothly with distance. |
rampIn | number | 140 | Milliseconds a letter takes to grow towards to once the pointer comes near (about 95 % of the way). |
rampOut | number | 520 | Milliseconds a letter takes to settle back to from after the pointer has left. Slower than rampIn leaves a soft trail. |
align | 'start' | 'center' | 'end' | 'start' | Where the text sits inside its reserved box: start, center or end. |
as | ElementType | 'span' | Element to render, e.g. h1. |
className | string | – | Classes for the wrapper: set font family, size, colour and tracking here. Needs a variable font, see above. |
A11y
Screenreader
The real text is read once from a visually hidden span, and the per-letter copy and the width-reserving copy are both aria-hidden. The heading level follows as.
Reduzierte Bewegung
The weights follow the pointer only; there is no keyboard equivalent and none is needed, because the effect is decorative. Under reduced motion the text stays at from and no listeners are added. The loop sleeps when every letter has settled or the text is off screen.
Sonstiges
A variable font with a wght axis is needed; with a static font the letters snap to the nearest weight. Keep from high enough for body text to stay readable.