Smoke Type
textProTekst, der fortættes ud af røg bogstav for bogstav og opløses i den igen, i én linje, flere linjer eller på stedet, ved indlæsning, hover eller scroll, med valgfrit varmeflimmer.
Introduktionspris til og med 31. december 2026. Derefter 79 €.
Preview
Live demo. Temaet skifter selve demoen.
Kode
Koden er låst
Smoke 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/smoke-typeclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
SmokeTypeProps
| Prop | Type | Standard | Hvad den gør |
|---|---|---|---|
text | string | '' | The text. In in-place mode, changing it dissolves the old text while the new one condenses in the same spot. |
phrases | string[] | – | Phrases that take turns in the same spot (any mode, made for in-place). When set, text is ignored. |
hold | number | 2600 | Milliseconds each phrase stays readable before the next one forms. |
mode | SmokeTypeMode | 'single-line' | single-line keeps the text on one line (it only wraps when it is wider than its container), multi-line lets it wrap and sweeps the reveal down the lines like a wave, in-place swaps phrases inside one reserved box (width and height come from the widest and tallest). |
from | SmokeTypeFrom | 'start' | Where the reveal starts: start the first letter (top left), end the last letter and runs backwards, bottom-left the last line first, each line still left to right. |
trigger | SmokeTypeTrigger | 'mount' | When it plays: mount as soon as it is on screen, scroll when it scrolls into view (and resets when it leaves, unless once), hover the text is readable at rest and puffs away and re-forms when the pointer enters. |
once | boolean | true | For scroll: play only the first time. Set to false to replay each time it comes back into view. |
intensity | number | 1 | How thick the smoke is: scales blur, drift, wisp size and turbulence. 0 is a plain staggered fade, 1 is the default, 2 is heavy. |
duration | number | 1100 | Time each letter takes to form, in milliseconds. |
stagger | number | 55 | Delay between letters in milliseconds (shrinks automatically so a long text never takes more than about three seconds). |
easing | string | 'cubic-bezier(0.22, 0.8, 0.24, 1)' | CSS easing of every letter, e.g. cubic-bezier(0.22, 0.8, 0.24, 1) or ease-out. |
turbulence | number | 0.35 | Strength of the optional SVG turbulence that makes the whole line wobble like heat haze while it plays, 0 to 1. 0 turns it off. |
smokeColor | string | – | Colour of the drifting wisps behind each letter. Defaults to the text colour (currentColor). |
playKey | string | number | – | Change this value to play the effect again (it dissolves first, then re-forms). |
onRevealed | () => void | – | Called when a reveal has finished. |
as | ElementType | 'span' | Element to render, e.g. h1 or p. |
className | string | – | Classes for the wrapper. It is inline-grid by default; pass grid for a full-width block. |
A11y
Skærmlæser
The real text sits once in a visually hidden span and is read as plain text; every smoke layer is aria-hidden. With phrases only the current phrase is exposed and nothing is announced when it changes. The heading level follows as.
Mindre bevægelse
Under reduced motion each reveal is a plain 0.3 s cross-fade and phrases do not take turns, so only the first phrase shows. Otherwise phrases take turns every hold plus duration, and the cycle holds while the pointer is over the text. There is no built-in pause control for keyboard or touch users. Nothing runs off screen or in hidden tabs.
Andet
With trigger="hover" the text is readable at rest, and the puff on pointer enter or tap is purely decorative, so it has no keyboard equivalent.