Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Add premium animated UI components built with Framer Motion and Tailwind CSS using Aceternity UI. Use when: adding animated effects (3D cards, glowing backgrounds, spotlight effects, moving borders), building visually stunning UIs, creating impressive hero sections and feature showcases in React/Next.js.
.claude/skills/terminalskills-aceternity-ui/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 124% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 74% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 82% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 123% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 99% | 0% |
Aceternity UI is a copy-paste component library — not an npm package. You copy the component code directly into your project, giving you full ownership and customization power. Components are built with Framer Motion and Tailwind CSS.
Key traits:
bashnpm install framer-motion clsx tailwind-merge
cn utilityts// lib/utils.ts import { type ClassValue, clsx } from "clsx"; import { twMerge } from "tailwind-merge"; export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); }
js// tailwind.config.ts — add animations module.exports = { content: ["./src/**/*.{ts,tsx}"], theme: { extend: { animation: { spotlight: "spotlight 2s ease .75s 1 forwards", shimmer: "shimmer 2s linear infinite", "move-to-right": "move-to-right 2s linear infinite", }, keyframes: { spotlight: { "0%": { opacity: "0", transform: "translate(-72%, -62%) scale(0.5)" }, "100%": { opacity: "1", transform: "translate(-50%, -40%) scale(1)" }, }, shimmer: { from: { backgroundPosition: "0 0" }, to: { backgroundPosition: "-200% 0" }, }, }, }, }, };
tsx// components/ui/3d-card.tsx "use client"; import { useRef, useState } from "react"; import { motion } from "framer-motion"; import { cn } from "@/lib/utils"; export const CardContainer = ({ children, className }: { children: React.ReactNode; className?: string }) => { const containerRef = useRef<HTMLDivElement>(null); const [rotateX, setRotateX] = useState(0); const [rotateY, setRotateY] = useState(0); const handleMouseMove = (e: React.MouseEvent<HTMLDivElement>) => { if (!containerRef.current) return; const { left, top, width, height } = containerRef.current.getBoundingClientRect(); const x = (e.clientX - left - width / 2) / 25; const y = (e.clientY - top - height / 2) / 25; setRotateX(-y); setRotateY(x); }; return ( <div ref={containerRef} onMouseMove={handleMouseMove} onMouseLeave={() => { setRotateX(0); setRotateY(0); }} className={cn("group/card perspective-1000", className)} style={{ perspective: "1000px" }} > <motion.div animate={{ rotateX, rotateY }} transition={{ type: "spring", stiffness: 300, damping: 30 }} style={{ transformStyle: "preserve-3d" }} > {children} </motion.div> </div> ); }; export const CardBody = ({ children, className }: { children: React.ReactNode; className?: string }) => ( <div className={cn("h-96 w-96 rounded-xl border border-white/10 bg-gray-900 p-6", className)}> {children} </div> ); // Usage export function PricingCard() { return ( <CardContainer> <CardBody className="flex flex-col justify-between p-8"> <h3 className="text-2xl font-bold text-white">Pro Plan</h3> <p className="text-4xl font-bold text-white">$29<span className="text-lg text-gray-400">/mo</span></p> <button className="rounded-lg bg-white px-6 py-3 font-semibold text-black">Get Started</button> </CardBody> </CardContainer> ); }
tsx// components/ui/background-beams.tsx "use client"; import { cn } from "@/lib/utils"; export function BackgroundBeams({ className }: { className?: string }) { return ( <div className={cn("absolute inset-0 overflow-hidden", className)}> <svg className="absolute h-full w-full" xmlns="http://www.w3.org/2000/svg" > <defs> <radialGradient id="beam1" cx="50%" cy="0%" r="50%"> <stop offset="0%" stopColor="#6366f1" stopOpacity="0.3" /> <stop offset="100%" stopColor="transparent" stopOpacity="0" /> </radialGradient> <radialGradient id="beam2" cx="20%" cy="50%" r="40%"> <stop offset="0%" stopColor="#8b5cf6" stopOpacity="0.2" /> <stop offset="100%" stopColor="transparent" stopOpacity="0" /> </radialGradient> </defs> <rect width="100%" height="100%" fill="url(#beam1)" /> <rect width="100%" height="100%" fill="url(#beam2)" /> {/* Animated lines */} {[...Array(6)].map((_, i) => ( <line key={i} x1={`${(i + 1) * 15}%`} y1="0%" x2={`${(i + 1) * 15 + 10}%`} y2="100%" stroke={`hsl(${240 + i * 20}, 70%, 60%)`} strokeWidth="1" strokeOpacity="0.15" /> ))} </svg> </div> ); } // Usage export function HeroSection() { return ( <div className="relative flex h-screen flex-col items-center justify-center bg-black"> <BackgroundBeams /> <h1 className="relative z-10 text-6xl font-bold text-white"> Build the Future </h1> <p className="relative z-10 mt-4 text-xl text-gray-400"> The platform for modern teams </p> </div> ); }
tsx// components/ui/spotlight.tsx "use client"; import { useRef, useState, useCallback } from "react"; import { motion } from "framer-motion"; import { cn } from "@/lib/utils"; export function Spotlight({ className }: { className?: string }) { const divRef = useRef<HTMLDivElement>(null); const [position, setPosition] = useState({ x: 0, y: 0 }); const [opacity, setOpacity] = useState(0); const handleMouseMove = useCallback((e: React.MouseEvent<HTMLDivElement>) => { if (!divRef.current) return; const { left, top } = divRef.current.getBoundingClientRect(); setPosition({ x: e.clientX - left, y: e.clientY - top }); }, []); return ( <div ref={divRef} onMouseMove={handleMouseMove} onMouseEnter={() => setOpacity(1)} onMouseLeave={() => setOpacity(0)} className={cn("relative overflow-hidden", className)} > <motion.div animate={{ opacity }} transition={{ duration: 0.3 }} className="pointer-events-none absolute -inset-px rounded-xl" style={{ background: `radial-gradient(600px circle at ${position.x}px ${position.y}px, rgba(99, 102, 241, 0.15), transparent 40%)`, }} /> </div> ); } // Usage on a card export function SpotlightCard({ title, desc }: { title: string; desc: string }) { return ( <Spotlight className="rounded-xl border border-white/10 bg-gray-900 p-8"> <h3 className="text-xl font-bold text-white">{title}</h3> <p className="mt-2 text-gray-400">{desc}</p> </Spotlight> ); }
tsx// components/ui/moving-border.tsx "use client"; import { useRef } from "react"; import { motion, useAnimationFrame, useMotionTemplate, useMotionValue, useTransform } from "framer-motion"; import { cn } from "@/lib/utils"; export function MovingBorder({ children, duration = 2000, className, }: { children: React.ReactNode; duration?: number; className?: string; }) { const pathRef = useRef<SVGRectElement>(null); const progress = useMotionValue(0); useAnimationFrame((time) => { const length = pathRef.current?.getTotalLength(); if (length) { const pxPerMs = length / duration; progress.set((time * pxPerMs) % length); } }); const x = useTransform(progress, (val) => pathRef.current?.getPointAtLength(val).x ?? 0); const y = useTransform(progress, (val) => pathRef.current?.getPointAtLength(val).y ?? 0); const transform = useMotionTemplate`translateX(${x}px) translateY(${y}px) translateX(-50%) translateY(-50%)`; return ( <div className={cn("relative", className)}> <svg className="absolute inset-0 h-full w-full" xmlns="http://www.w3.org/2000/svg"> <rect fill="none" width="100%" height="100%" rx="16" ry="16" ref={pathRef as React.RefObject<SVGRectElement>} /> <motion.circle cx="0" cy="0" r="6" fill="#6366f1" style={{ transform }} /> </svg> <div className="relative rounded-2xl border border-white/10 bg-gray-900 p-px"> <div className="rounded-2xl bg-gray-950 p-6">{children}</div> </div> </div> ); } // Usage export function FeatureCard() { return ( <MovingBorder duration={3000} className="w-72"> <h3 className="text-xl font-bold text-white">Feature Name</h3> <p className="mt-2 text-gray-400">Description of the feature goes here.</p> </MovingBorder> ); }
tsx// components/ui/wavy-background.tsx "use client"; import { useEffect, useRef } from "react"; import { cn } from "@/lib/utils"; import { createNoise3D } from "simplex-noise"; export function WavyBackground({ children, className, backgroundFill = "#0f0f0f", colors = ["#38bdf8", "#818cf8", "#c084fc"], speed = 0.001, }: { children?: React.ReactNode; className?: string; backgroundFill?: string; colors?: string[]; speed?: number; }) { const canvasRef = useRef<HTMLCanvasElement>(null); const noise = createNoise3D(); useEffect(() => { const canvas = canvasRef.current; if (!canvas) return; const ctx = canvas.getContext("2d")!; let frame = 0; const resize = () => { canvas.width = canvas.offsetWidth; canvas.height = canvas.offsetHeight; }; resize(); window.addEventListener("resize", resize); const draw = () => { ctx.fillStyle = backgroundFill; ctx.fillRect(0, 0, canvas.width, canvas.height); colors.forEach((color, i) => { ctx.beginPath(); ctx.lineWidth = 40; ctx.strokeStyle = color; for (let x = 0; x <= canvas.width; x += 5) { const y = noise(x / 800, i * 0.3, frame * speed) * 100 + canvas.height / 2; if (x === 0) ctx.moveTo(x, y); else ctx.lineTo(x, y); } ctx.stroke(); }); frame++; requestAnimationFrame(draw); }; draw(); return () => window.removeEventListener("resize", resize); }, []); return ( <div className={cn("relative flex items-center justify-center", className)}> <canvas ref={canvasRef} className="absolute inset-0 h-full w-full" /> <div className="relative z-10">{children}</div> </div> ); } // Usage export function WavyHero() { return ( <WavyBackground className="h-screen" colors={["#6366f1", "#8b5cf6", "#ec4899"]}> <h1 className="text-6xl font-bold text-white text-center"> Ship with Confidence </h1> </WavyBackground> ); }
bash# Install all common deps at once npm install framer-motion clsx tailwind-merge simplex-noise # For TypeScript types npm install -D @types/simplex-noise
| Component | Effect | Use for | |-----------|--------|---------| | 3D Card | Tilt on hover | Pricing, features | | Background Beams | Gradient beam lines | Hero backgrounds | | Spotlight | Cursor-following glow | Cards, panels | | Moving Border | Animated border dot | CTAs, feature cards | | Wavy Background | Canvas wave animation | Section backgrounds | | Glowing Stars | Star particles | Dark hero sections | | Evervault Card | Scrambling text on hover | Security/tech themes | | Lamp | Cone of light from top | Hero sections | | Macbook Scroll | Device reveal on scroll | Product showcases | | Infinite Moving Cards | Scrolling testimonials | Social proof |
dark class or set darkMode: 'class' in Tailwindnext/dynamic and ssr: falseLazyMotion for code splitting| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 10,244 | 6,055 | -41% | 1 | 1 | 0% | 2,267 | 5,068 | +124% | 0 | 0 | — |
case-02 | fail→fail | 20,167 | 15,420 | -24% | 1 | 1 | 0% | 4,628 | 6,637 | +43% | 0 | 0 | — |
case-03 | fail→fail | 16,717 | 12,201 | -27% | 1 | 1 | 0% | 3,749 | 6,531 | +74% | 0 | 0 | — |
case-04 | pass→fail | 11,062 | 12,551 | +13% | 1 | 1 | 0% | 2,625 | 6,603 | +152% | 0 | 0 | — |
case-05 | fail→pass | 15,828 | 13,138 | -17% | 1 | 1 | 0% | 3,445 | 5,989 | +74% | 0 | 0 | — |
case-06 | fail→fail | 19,006 | 15,043 | -21% | 1 | 1 | 0% | 4,037 | 7,095 | +76% | 0 | 0 | — |
case-07 | pass→pass | 12,037 | 11,027 | -8% | 1 | 1 | 0% | 2,559 | 5,917 | +131% | 0 | 0 | — |
case-08 | pass→pass | 6,967 | 6,857 | -2% | 1 | 1 | 0% | 1,301 | 5,049 | +288% | 0 | 0 | — |
case-09 | pass→pass | 8,644 | 10,113 | +17% | 1 | 1 | 0% | 1,419 | 4,855 | +242% | 0 | 0 | — |
case-10 | fail→pass | 12,278 | 5,023 | -59% | 1 | 1 | 0% | 2,652 | 4,839 | +82% | 0 | 0 | — |
case-11 | pass→pass | 12,027 | 8,292 | -31% | 1 | 1 | 0% | 2,496 | 5,165 | +107% | 0 | 0 | — |
case-12 | pass→pass | 14,874 | 17,680 | +19% | 1 | 1 | 0% | 2,491 | 6,713 | +169% | 0 | 0 | — |
case-13 | pass→pass | 13,227 | 13,833 | +5% | 1 | 1 | 0% | 2,634 | 6,761 | +157% | 0 | 0 | — |
case-14 | pass→pass | 7,858 | 6,713 | -15% | 1 | 1 | 0% | 1,592 | 5,016 | +215% | 0 | 0 | — |
case-15 | pass→pass | 17,123 | 11,362 | -34% | 1 | 1 | 0% | 2,629 | 6,127 | +133% | 0 | 0 | — |
case-16 | fail→pass | 14,108 | 9,352 | -34% | 1 | 1 | 0% | 2,587 | 5,773 | +123% | 0 | 0 | — |
case-17 | fail→pass | 12,344 | 4,735 | -62% | 1 | 1 | 0% | 2,396 | 4,771 | +99% | 0 | 0 | — |
case-18 | pass→pass | 10,844 | 8,614 | -21% | 1 | 1 | 0% | 1,829 | 5,223 | +186% | 0 | 0 | — |
case-19 | pass→pass | 9,160 | 10,998 | +20% | 1 | 1 | 0% | 1,461 | 5,586 | +282% | 0 | 0 | — |
case-20 | pass→pass | 10,524 | 11,393 | +8% | 1 | 1 | 0% | 1,806 | 5,623 | +211% | 0 | 0 | — |
case-21 | pass→pass | 10,446 | 6,312 | -40% | 1 | 1 | 0% | 1,734 | 5,017 | +189% | 0 | 0 | — |
case-22 | pass→pass | 16,538 | 20,108 | +22% | 1 | 1 | 0% | 3,572 | 8,273 | +132% | 0 | 0 | — |
case-23 | pass→pass | 13,485 | 11,852 | -12% | 1 | 1 | 0% | 2,719 | 6,062 | +123% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +17 percentage points is the difference between those two pass rates over the 23 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.