Text & Typography Fancy Stable

Focus

Text component that cycles focus through words with blur and corner frame

Preview

Installation

pnpm add fancy-ui-svelte
import { Focus } from 'fancy-ui-svelte'

Usage

svelte
<script lang="ts">
  import { Focus } from 'fancy-ui-svelte';
</script>

<Focus />

Examples

Basic Usage

Custom Border Color

Manual Mode

Hover to focus each word.

High Blur

Strong blur effect.

Props

PropTypeDefaultDescription
sentence string"Fancy Focus"Space-separated words to cycle focus through
manualMode booleanfalseEnable manual control via mouse hover instead of auto-cycling
blurAmount number5Blur amount in pixels for unfocused words
borderColor string"green"Color of the corner frame border
animationDuration number0.5Transition duration in seconds
pauseBetweenAnimations number1Pause between word cycles in seconds