Command Palette

Search for a command to run...

Docs
True Focus

True Focus

Auto-cycling or hover-driven word focus with blur effect and animated corner bracket indicators

DesignDevelopDeploy

Installation

Examples

Manual Hover Mode

HoverToRevealWords

Hover over each word to reveal it — ideal for interactive call-to-action sections or feature highlights.

Usage

import TrueFocus from "@/components/motionx/true-focus";

Auto-cycling

<TrueFocus
  sentence="Design Develop Deploy"
  blurAmount={5}
  borderColor="green"
  animationDuration={0.5}
  pauseBetweenAnimations={1}
/>

Manual hover mode

<TrueFocus
  sentence="Hover To Reveal Words"
  manualMode={true}
  blurAmount={4}
  borderColor="#f97316"
  glowColor="rgba(249, 115, 22, 0.6)"
  animationDuration={0.3}
/>

Props

PropTypeDefaultDescription
sentencestring"True Focus"Space-separated text (each word is a target)
manualModebooleanfalseHover-to-reveal instead of auto-cycling
blurAmountnumber5Blur intensity for inactive words (px)
borderColorstring"green"Corner bracket border color
glowColorstring"rgba(0, 255, 0, 0.6)"Glow color for the focus indicator
animationDurationnumber0.5Focus transition duration in seconds
pauseBetweenAnimationsnumber1Pause between auto-cycle steps (seconds)