Baktiyar Ablaikhan

Aurora Text

Source
Magic UI ↗
Author
Magic UI
Licence
MIT

Loading…

A word filled with a drifting, gently rotating aurora gradient.

Code

"use client";

import { AuroraText } from "@/lab/magicui/ui/aurora-text";

export default function AuroraTextDemo() {
  return (
    <div className="@container relative flex h-full w-full items-center justify-center px-6">
      <h1 className="text-[clamp(2rem,9cqw,4.5rem)] font-bold tracking-tighter text-neutral-950">
        Ship <AuroraText>beautiful</AuroraText>
      </h1>
    </div>
  );
}
Prompt

Build "Aurora Text", a text animation. What it does: A word filled with a drifting, gently rotating aurora gradient. Write it as a single self-contained React component in TypeScript that fills its parent (w-full h-full), styled with Tailwind CSS. It sits on a light background, in a 16:10 frame. Respect prefers-reduced-motion with a still state, pause work when the element is off screen, and keep it accessible. Original: https://magicui.design/docs/components/aurora-text (Magic UI, MIT).