Warp Type
textProDisplaytekst på et WebGL-net, som markøren trækker i, og som fjedrer tilbage, med farvekanter, der skifter gennem en palet, mens man trækker.
Introduktionspris til og med 31. december 2026. Derefter 79 €.
Preview
Live demo. Temaet skifter selve demoen.
Kode
Koden er låst
Warp Type 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/warp-typeclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
WarpTypeProps
| Prop | Type | Standard | Hvad den gør |
|---|---|---|---|
text påkrævet | string | – | The text to show. It stays in the page as real, selectable text; the mesh is drawn on top of it. |
force | number | 24 | How hard the pointer drags the letters, from 0 to 50. Around 24 is a firm, jelly-like pull. |
radius | number | – | How far from the pointer the drag reaches, in CSS pixels. Defaults to about one line of text. Moving fast widens it a little. |
fringe | boolean | true | Split the colours at the edges of dragged letters, like a lens that cannot quite focus. |
palette | string[] | DEFAULT_PALETTE | Colours of the fringe. They cycle while the pointer drags and settle when it stops. Any CSS colour, including var(--x). |
cycleMs | number | 420 | How long each palette colour is held while dragging, in milliseconds. |
color | string | – | Fill colour of the text. Any CSS colour; defaults to the inherited text colour (currentColor). |
stiffness | number | 1 | How stiffly the letters spring back. Below 1 they wobble for longer, above 1 they snap home. |
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, size, weight and colour here; the effect reads them from the page. |
A11y
Skærmlæser
The real text stays in the page as ordinary text and is read once, in the element chosen with as (so as="h1" gives a heading). The WebGL canvas is aria-hidden, ignores the pointer and cannot take focus.
Mindre bevægelse
The mesh reacts only to the pointer; there is no keyboard equivalent and none is needed, because nothing carries meaning. Under reduced motion the canvas is never created and the plain text is shown. The loop sleeps when the mesh is still or the text is off screen.
Andet
Without WebGL2, or after a lost context, the plain text stays visible. The text is only made transparent while the canvas is drawing it.