Focus frame
motionProEn afstandsmålerramme, der træder gennem en sætning, trækker ét ord i fokus og låser med et kort klik. Den følger markøren og piletasterne og står stille på ét ord ved reduceret bevægelse.
Introduktionspris til og med 31. december 2026. Derefter 79 €.
Preview
Live demo. Temaet skifter selve demoen.
Kode
Koden er låst
Focus frame 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/focus-frameclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
FocusFrameProps
| Prop | Type | Standard | Hvad den gør |
|---|---|---|---|
children påkrævet | string | string[] | – | The sentence. A string is split at spaces; an array sets each stop yourself, e.g. ['Made in', 'Aalborg']. |
interval | number | 1800 | Milliseconds the frame rests on each word while it plays. |
blur | number | 1.6 | Blur in pixels on the words outside the frame. |
autoPlay | boolean | true | Step through the words on its own. |
rounds | number | 3 | Rounds through the sentence before it stops on the last word. 0 keeps going; then offer a pause button (see paused). |
paused | boolean | false | Stops the frame where it is, e.g. from a pause button of your own. |
pauseOnInteraction | boolean | true | Hold still while the pointer is over the sentence or it has keyboard focus. |
onFocusWord | (word: FocusFrameWord) => void | – | Called when the frame moves to a word, and again when it locks onto it. |
as | 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'p' | The element that holds the sentence. |
Tager også alle props fra Omit<HTMLAttributes<HTMLDivElement>, 'children'>.
A11y
Tastatur
The frame group is focusable. Arrow keys move the frame between items and Home and End jump to the first and last. The focus ring is a visible 2 pixel outline.
Skærmlæser
A hint is linked with aria-describedby and the sentence is read once from a screen-reader-only span.
Mindre bevægelse
Autoplay pauses on hover and keyboard focus, stops after rounds (default 3) and can be held with paused. Under reduced motion it does not autoplay and the frame jumps without gliding.