← All components
Text / effect

True Focus

A moving frame draws one word into focus while the rest softly blur.

PLAYGROUND
Live preview
Preparing preview…

Take it with you.

SOURCE ACCESS

Preview freely. Unlock the files.

Enter the shared password to copy the complete source, download every file, and install components in your app.

Access lasts 24 hours. Your preview settings stay with you.

Component notes

  • The included Demo.tsx recreates the preview. The implementation owns one animation loop and excludes paused, hidden and offscreen time.
  • Reduced motion keeps the content readable. Original attribution and notice are included.
  • Manual mode supports pointer hover, Left/Right, Home/End and Enter/Space. Resize and font changes remeasure the focus frame.
  • All words stay clear under reduced motion. Animation duration and pause are measured in seconds.
React 19framer-motion@12.42.2

React Bits · MIT with Commons Clause. Used with explicit project permission; see bundled notice.

Props

PropTypeDefaultDescription
sentencestring"True Focus"Sentence
separatorstring" "Word separator
manualModebooleanfalseManual focus
blurAmountnumber5Blur amount
borderColorstring"#00ff00"Frame color
glowColorstring"#00ff0099"Glow color
animationDurationnumber0.5Transition duration
pauseBetweenAnimationsnumber1Pause between words
pausedbooleanfalseFreeze animation without advancing hidden time.
replayTokennumber0Change to restart.
classNamestring''Additional container classes.