deleted

Animated Content

Text 4

About

A minimalistic animation content

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

Code

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

Usage.tsx

import { AnimatedContent } from "@/components/ui/animated-content";
import { SpringConfig } from "@react-spring/web";

const DemoOne = () => {
  const direction: "vertical" | "horizontal" = "vertical";
  const reverse: boolean = false;
  const animateOpacity: boolean = true;
  const initialOpacity: number = 0.0;
  const distance: number = 100;
  const delay: number = 0;
  const scale: number = 1.0;
  const tension: number = 50;
  const friction: number = 25;
  const threshold: number = 0.1;

  const springConfig: SpringConfig = { tension, friction };

  const animatedItemKey = `${direction}-${reverse}-${animateOpacity}-${initialOpacity}-${distance}-${delay}-${scale}-${tension}-${friction}-${threshold}`;

  return (
    <div className="flex flex-col w-full min-h-screen justify-center items-center 
                   p-4
                   bg-white text-black 
                   dark:bg-black dark:text-white 
                   transition-colors duration-300">
      
      <AnimatedContent
        key={animatedItemKey}
        distance={distance}
        direction={direction}
        reverse={reverse}
        config={springConfig}
        initialOpacity={initialOpacity}
        animateOpacity={animateOpacity}
        scale={scale}
        threshold={threshold}
        delay={delay}
      >
        <div className="px-10 py-6 rounded-2xl border
                        text-lg font-semibold text-center
                        
                        bg-white text-black border-neutral-300 
                        dark:bg-black dark:text-white dark:border-neutral-700 
                        
                        transition-colors duration-300">
          Animate Me
        </div>
      </AnimatedContent>
      
    </div>
  );
};

export { DemoOne };

Dependencies

More by deleted

View all
  • Splash Cursor

    Splash Cursor

    1.3K
  • Star Border

    Star Border

    728
  • Tilted Scroll

    Tilted Scroll

    433
  • Waves Background

    Waves Background

    362
  • Squares Background

    Squares Background

    326
  • Prism

    Prism

    218
  • Grid Motion

    Grid Motion

    183
  • Circular Gallery

    Circular Gallery

    173

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    103
  • Rainbow Text Effect

    Rainbow Text Effect

    47
  • Motion Blur Text

    Motion Blur Text

    36
  • Text Loop

    Text Loop

    308
  • Text Reveal

    Text Reveal

    27
  • Animated Text

    Animated Text

    8
  • Apple Hello Effect

    Apple Hello Effect

    610
  • Typography

    Typography

    4