Melt Words
textProSkifter gennem en ordliste med en klæbrig smelteovergang (sløring og tærskel) mellem ordene, forankret i det længste ord, så intet flytter sig, med styring af varighed, pause og kurve.
Introduktionspris til og med 31. december 2026. Derefter 79 €.
Preview
Live demo. Temaet skifter selve demoen.
Kode
Koden er låst
Melt Words 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/melt-wordsclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
MeltWordsProps
| Prop | Type | Standard | Hvad den gør |
|---|---|---|---|
words påkrævet | string[] | string | – | The words to cycle through, as a list or as one string split on line breaks and commas. At least two are needed to animate. |
as | ElementType | 'span' | The element to render, e.g. h1, h2, p, section or span. |
duration | number | 1100 | How long one word takes to melt into the next, in milliseconds. |
hold | number | 1500 | How long each word stays still before the next melt starts, in milliseconds. |
easing | MeltWordsEasing | 'snap' | Speed curve of the melt. snap is our own: a quick start that settles softly. Also takes the CSS names, cubic-bezier(x1, y1, x2, y2) or the four numbers as a tuple. |
blur | number | 0.16 | The most the words blur at the middle of a melt, in em of the font size. More blur means a thicker, gooier bridge. |
scale | number | 0.06 | How much a word shrinks when it fades out and grows when it arrives (0 turns it off). 0.1 means 10%. |
align | 'start' | 'center' | 'end' | 'center' | Where the words sit inside the longest word's width. |
paused | boolean | false | Stops the cycle on the current word. The cycle also holds while the pointer is over the words. Offer a pause control wired to this prop, so keyboard and touch users can stop it too. |
announce | 'list' | 'current' | 'list' | What screen readers get. list (default): all words as one static sentence, so nothing is announced while the words cycle. current: only the visible word, announced politely each time it changes. |
onChange | (index: number) => void | – | Called when a new word has arrived, with its index. |
className | string | – | Classes for the element. Set the font, size, weight and colour here; the effect uses currentColor. |
style | CSSProperties | – | Styles for the element. |
A11y
Skærmlæser
By default (announce="list") screen readers read all words once as one static, visually hidden list and nothing is announced while the words cycle. With announce="current" only the visible word is announced, politely, each time it changes. The cycling letters are aria-hidden, and the heading level follows as.
Mindre bevægelse
The cycle holds on the current word while the pointer is over it and while paused is true; wire paused to a visible Pause button so keyboard and touch users can stop it too. Under reduced motion the first word stays put and no melt starts. The loop also stops off screen and in hidden tabs.