Neon Gradient Card
- Source
- Magic UI ↗
- Author
- Magic UI
- Licence
- MIT
Loading…
A card ringed by a glowing neon gradient that slides up and down.
Code
"use client";
import { NeonGradientCard } from "@/lab/magicui/ui/neon-gradient-card";
export default function NeonGradientCardDemo() {
return (
<div className="@container relative flex h-full w-full items-center justify-center p-[10%]">
<NeonGradientCard className="h-full max-w-sm items-center justify-center text-center">
<span className="pointer-events-none z-10 flex h-full items-center justify-center bg-linear-to-br from-[#ff2975] from-35% to-[#00FFF1] bg-clip-text text-center text-[clamp(1.5rem,5cqw,3rem)] leading-none font-bold tracking-tighter text-balance whitespace-pre-wrap text-transparent">
Neon Gradient Card
</span>
</NeonGradientCard>
</div>
);
}
Prompt
Build "Neon Gradient Card", a card animation. What it does: A card ringed by a glowing neon gradient that slides up and down. 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/neon-gradient-card (Magic UI, MIT).