Baktiyar Ablaikhan

Glare Card

Source
Aceternity UI ↗
Author
Aceternity UI
Licence
Aceternity UI licence (free component)

Loading…

A holographic card tilts and throws a moving glare under the pointer.

Code

"use client";
import { Fit } from "./_fit";
import { GlareCard } from "@/lab/aceternity/ui/glare-card";

export default function GlareCardDemo() {
  return (
    <Fit width={380} height={460} max={1.3}>
    <div className="flex h-full w-full items-center justify-center">
    <GlareCard className="flex flex-col items-center justify-center">
      <svg
        width="66"
        height="65"
        viewBox="0 0 66 65"
        fill="none"
        xmlns="http://www.w3.org/2000/svg"
        className="h-7 w-7 text-white"
      >
        <path
          d="M8 8.05571C8 8.05571 54.9009 18.1782 57.8687 30.062C60.8365 41.9458 9.05432 57.4696 9.05432 57.4696"
          stroke="currentColor"
          strokeWidth="15"
          strokeMiterlimit="3.86874"
          strokeLinecap="round"
        />
      </svg>
      <p className="text-white font-bold text-xl mt-4">Aceternity</p>
    </GlareCard>
    </div>
    </Fit>
  );
}
Prompt

Build "Glare Card", a card animation. What it does: A holographic card tilts and throws a moving glare under the pointer. Write it as a single self-contained React component in TypeScript that fills its parent (w-full h-full), styled with Tailwind CSS. Technique: inline SVG, pointer tracking. It sits on a light background, in a square frame. Respect prefers-reduced-motion with a still state, pause work when the element is off screen, and keep it accessible. Original: https://ui.aceternity.com/components/glare-card (Aceternity UI, Aceternity UI licence (free component)).