Focus Frame
A focus frame moves from word to word while the other words stay blurred, as brackets, a box, an underline or a highlight.
pixikit.com/docs/effects/focus-frame
Customize
Focus style
Border color
Highlight color
Glow color
Focus scale1.00
Blur amount5.0px
Unfocused opacity1.00
Easing
Order
Manual mode
Animation duration0.50s
Pause between animations1.0s
Corner size16px
Border width3.0px
Props
17| Name | Type | Default | Description |
|---|---|---|---|
sentence | string | "True Focus" | The words; only one is sharp at a time. |
separator | string | " " | The string the sentence is split on. |
focusStyle | "brackets" | "box" | "underline" | "highlight" | "brackets" | How the focused word is marked: corner brackets, a full outline, a bar underneath, or a soft block behind it. |
borderColor | string | "var(--primary)" | The colour of the brackets, box or underline. |
highlightColor | string | "" | The colour of the block in the highlight style; empty uses the border colour. |
glowColor | string | "transparent" | The colour of a soft glow around the frame; transparent for none. |
focusScale | number | 1 | How much the focused word grows; the frame grows with it. |
blurAmount | number | 5 | The blur on the words out of focus, in pixels. |
unfocusedOpacity | number | 1 | The opacity of the words out of focus, 0 to 1. |
easing | "smooth" | "spring" | "smooth" | How the frame travels: a smooth glide, or a spring that overshoots and settles. |
order | "sequential" | "random" | "sequential" | The next word in reading order, or a random other word. |
manualMode | boolean | false | Move the focus to the hovered word instead of cycling on its own. |
animationDuration | number | 0.5 | The seconds the frame takes to move to the next word. |
pauseBetweenAnimations | number | 1 | The seconds the focus rests on a word before moving on. |
cornerSize | number | 16 | The length of each corner bracket, in pixels. |
borderWidth | number | 3 | The thickness of the brackets, box or underline, in pixels. |
className | string | None |