Saturation UIsaturation UI
DocsComponentsBlocks
⌘K

Getting Started

IntroductionInstallationTheming

Components

AccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBorder TrailBreadcrumbButtonButton GroupCalendarCardChartCheckboxCollapsibleComboboxCommandContext MenuData TableDate PickerDialogDropdown MenuEmptyFieldGlow EffectInputInput GroupItemKbdMenubarNovel EditorPaginationProgressive BlurProgressSelectSheetSkeletonSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Components
/
Text Effect

Text Effect

Animate text with various effects and timing controls.

Preview

Animate your ideas with motion-primitivesAnimate your ideas with motion-primitives

Installation

Copy and paste the following code into your project.

npx shadcn@latest add https://ui.saturation.io/r/text-effect.json

Usage

import { TextEffect } from '@/components/ui/text-effect'

export function Example() {
  return (
    <TextEffect per="char" preset="fade">
      Animate your ideas
    </TextEffect>
  )
}

Examples

Blur

Text appears with blur effectText appears with blur effect

Fade In Blur

Text fades in with blur and slideText fades in with blur and slide

Scale

Text scales up from zeroText scales up from zero

Slide

Text slides up from belowText slides up from below

Per Character

Character by characterCharacter by character

Per Word

Word by word animationWord by word animation

Per Line

First lineSecond lineThird line

API Reference

PropTypeDefaultDescription
childrenstring-The text content to animate
per'char' | 'word' | 'line''word'Animation granularity
preset'blur' | 'fade-in-blur' | 'scale' | 'fade' | 'slide''fade'Animation preset type
delaynumber0Delay before animation starts (seconds)
speedRevealnumber1Speed multiplier for stagger timing
speedSegmentnumber1Speed multiplier for segment animation
triggerbooleantrueControls animation trigger
askeyof JSX.IntrinsicElements'p'HTML element to render as
classNamestring-Additional CSS classes
variantsobject-Custom Framer Motion variants

On This Page

  • Preview
  • Installation
  • Usage
  • Examples
  • API Reference

Deploy your Saturation UI app

Build beautiful, saturated interfaces with our component library.

Deploy to Vercel for the best performance and developer experience.