ElevenLabs

Shimmering Text

Cards 90

About

Here is Shimmering Text component

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Shimmering Text to your project and fits it to your theme.

Code

How Shimmering Text is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client"

import { useEffect, useState } from "react"
import { AnimatePresence, motion } from "motion/react"
import { ShimmeringText } from "@/components/ui/shimmering-text"

const phrases = [
  "Agent is thinking...",
  "Processing your request...",
  "Analyzing the data...",
  "Generating response...",
  "Almost there...",
]

export default function TextShimmerDemo() {
  const [currentIndex, setCurrentIndex] = useState(0)

  useEffect(() => {
    const interval = setInterval(() => {
      setCurrentIndex((prev) => (prev + 1) % phrases.length)
    }, 3000)

    return () => clearInterval(interval)
  }, [])

  return (
    <div className="flex items-center justify-center min-h-screen bg-background p-6">
      {/* Контейнер теперь фиксированной, адаптивной ширины */}
      <div className="w-full max-w-lg bg-card rounded-2xl border p-8 shadow-lg">
        <div className="mb-6 text-center">
          <h3 className="text-xl font-semibold">Text Shimmer Effect</h3>
          <p className="text-muted-foreground text-sm">
            Animated gradient text with automatic cycling
          </p>
        </div>

        <div className="flex items-center justify-center rounded-lg bg-muted/10 py-10">
          <AnimatePresence mode="wait">
            <motion.div
              key={currentIndex}
              initial={{ opacity: 0, y: 10 }}
              animate={{ opacity: 1, y: 0 }}
              exit={{ opacity: 0, y: -10 }}
              transition={{ duration: 0.3 }}
            >
              <ShimmeringText text={phrases[currentIndex]} />
            </motion.div>
          </AnimatePresence>
        </div>
      </div>
    </div>
  )
}

Dependencies

More by ElevenLabs

View all
  • Orb

    Orb

    223
  • Bar Visualizer

    Bar Visualizer

    121
  • Waveform

    Waveform

    94
  • Audio Player

    Audio Player

    52
  • Voice Picker

    Voice Picker

    45
  • Live Waveform

    Live Waveform

    44
  • Response

    Response

    35
  • Speaker

    Speaker

More in Cards

View all
  • Statistics Card 2

    Statistics Card 2

    256
  • Course Design Cards

    Course Design Cards

    1.1K
  • Stats cards with links

    Stats cards with links

    83
  • The Item one

    The Item one

    3
  • Card Studio

    Card Studio

    36
  • Card

    Card

    70
  • Statistics Card 10

    Statistics Card 10

    259
  • File Card Collections

    File Card Collections

    996