Skip to content
DevBuildKit
AgentsSkillsCommandsPacksPricingDocsBlogTools
Log inGet DevBuildKit

Next.js Animated UI

Elite animation patterns and rich interactive UI engineering for Next.js App Router using Framer Motion, Motion, Tailwind CSS, micro-interactions, layout transitions, and GPU-accelerated effects.

SkillFreev1.0.0
  1. Skills
  2. Next.js Animated UI

What it does

Elite animation patterns and rich interactive UI engineering for Next.js App Router using Framer Motion, Motion, Tailwind CSS, micro-interactions, layout transitions, and GPU-accelerated effects.

Category
frontenduianimationweb
Platforms
web
Frameworks and tools
nextjsreacttailwindcssframer-motion
Capabilities
nextjs-app-routermotion-designinteractive-uiperformance-profiling

Example tasks

  • “Build a modern hero section with staggered floating badges and glassmorphic gradients in Next.js”
  • “Create an interactive bento grid with hover glow effects and spring-based accordion cards”
  • “Implement smooth route transitions and scroll-driven parallax cards with Framer Motion in Next.js App Router”

Permissions summary

  • Files

    Reads files only

  • Shell

    No shell commands

  • Network

    No network

Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.

Supported environments

ClientSupportInstalled as
Claude CodeNative.claude/skills/<id>/SKILL.md
OpenAI CodexAdapter.codex/skills/<id>/SKILL.md
CursorAdapter.cursor/rules/<id>.mdc
VS Code (Copilot)Adapter.github/instructions/<id>.instructions.md
Generic markdownAdapterdocs/forgekit/skills/<id>.md

Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.

Full skill (free preview)

This is a free component, so its complete content is public. It is exactly what gets installed (before client-specific formatting).

Next.js Animated UI

Next.js Animated UI is a comprehensive engineering skill for building state-of-the-art, 60fps animated interfaces in Next.js App Router (versions 14, 15, and 16). It integrates modern animation libraries (Motion / Framer Motion), Tailwind CSS, hardware acceleration, layout animations, and accessible motion controls.

Core Principles

  1. Server-Client Boundary Discipline:

    • Keep page-level route components as Server Components (page.tsx, layout.tsx) for streaming and SEO.
    • Encapsulate animated sections and interaction hooks inside dedicated Client Components marked with "use client".
    • Never turn an entire page or data-fetching tree into a client component just to trigger an animation.
  2. Physically-Based Spring Motion:

    • Default to natural spring curves (stiffness: 260, damping: 20) rather than linear or abrupt cubic-bezier transitions.
    • Use staggered children for item lists and grid reveal animations (staggerChildren: 0.08).
  3. Performance & GPU Acceleration:

    • Only animate composite properties: transform (scale, translate, rotate) and opacity.
    • Never animate layout triggers like width, height, top, left, or margin directly; use Framer Motion layout or CSS transforms instead.
    • Apply will-change: transform or hardware promotion sparingly to active animated elements.
  4. Accessibility (prefers-reduced-motion):

    • Always wrap animations or use Motion’s useReducedMotion() hook to degrade gracefully to instant transitions or simple opacity changes for users requesting reduced motion.

Architectural Patterns

1. Hero Section with Staggered Entrance and Floating Elements

"use client";

import { motion, useReducedMotion } from "framer-motion";
import React from "react";

const containerVariants = {
  hidden: { opacity: 0 },
  visible: {
    opacity: 1,
    transition: {
      staggerChildren: 0.12,
      delayChildren: 0.1,
    },
  },
};

const itemVariants = {
  hidden: { opacity: 0, y: 24 },
  visible: {
    opacity: 1,
    y: 0,
    transition: { type: "spring", stiffness: 300, damping: 24 },
  },
};

export function AnimatedHero() {
  const shouldReduceMotion = useReducedMotion();

  return (
    <motion.section
      className="relative min-h-[80vh] flex flex-col items-center justify-center text-center px-4 overflow-hidden"
      variants={shouldReduceMotion ? {} : containerVariants}
      initial="hidden"
      animate="visible"
    >
      <motion.div
        variants={shouldReduceMotion ? {} : itemVariants}
        className="inline-flex items-center gap-2 px-3 py-1 rounded-full border border-sky-500/30 bg-sky-500/10 text-sky-400 text-xs font-semibold mb-6 backdrop-blur-md"
      >
        <span className="relative flex h-2 w-2">
          <span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-sky-400 opacity-75"></span>
          <span className="relative inline-flex rounded-full h-2 w-2 bg-sky-500"></span>
        </span>
        Next.js Animated UI Stack
      </motion.div>

      <motion.h1
        variants={shouldReduceMotion ? {} : itemVariants}
        className="text-4xl sm:text-6xl font-extrabold tracking-tight max-w-4xl bg-gradient-to-br from-white via-neutral-200 to-neutral-400 bg-clip-text text-transparent"
      >
        Transform Static Interfaces Into Fluid, Cinematic Experiences
      </motion.h1>

      <motion.p
        variants={shouldReduceMotion ? {} : itemVariants}
        className="mt-6 text-base sm:text-lg text-neutral-400 max-w-2xl"
      >
        Harness hardware-accelerated Framer Motion and Tailwind CSS to construct production-ready micro-interactions, layout morphs, and reactive UI elements.
      </motion.p>
    </motion.section>
  );
}

2. Interactive Bento Grid with Layout Morphs & Glow Hover

"use client";

import { motion } from "framer-motion";
import React, { useState } from "react";

export function BentoCard({ title, desc, icon }: { title: string; desc: string; icon: string }) {
  const [mousePosition, setMousePosition] = useState({ x: 0, y: 0 });
  const [isHovered, setIsHovered] = useState(false);

  function handleMouseMove(e: React.MouseEvent<HTMLDivElement>) {
    const rect = e.currentTarget.getBoundingClientRect();
    setMousePosition({
      x: e.clientX - rect.left,
      y: e.clientY - rect.top,
    });
  }

  return (
    <motion.div
      onMouseMove={handleMouseMove}
      onMouseEnter={() => setIsHovered(true)}
      onMouseLeave={() => setIsHovered(false)}
      whileHover={{ y: -4, transition: { duration: 0.2 } }}
      className="relative rounded-2xl border border-neutral-800 bg-neutral-900/60 p-6 overflow-hidden backdrop-blur-xl group"
    >
      <div
        className="pointer-events-none absolute -inset-px transition-opacity duration-300"
        style={{
          opacity: isHovered ? 1 : 0,
          background: `radial-gradient(400px circle at ${mousePosition.x}px ${mousePosition.y}px, rgba(56, 189, 248, 0.15), transparent 80%)`,
        }}
      />
      <div className="text-3xl mb-4">{icon}</div>
      <h3 className="text-xl font-bold text-white mb-2">{title}</h3>
      <p className="text-sm text-neutral-400 leading-relaxed">{desc}</p>
    </motion.div>
  );
}

Rules & Checklists

  • Next.js App Router compatibility: Check if animated components declare "use client".
  • Zero Layout Thrashing: Never animate properties that re-trigger browser reflow (width, height, margin, padding). Use transform: scale() or Framer Motion layout props.
  • Reduced Motion Support: Always account for users with vestibular disorders by supporting prefers-reduced-motion.
  • Bundle Size Discipline: Import only the necessary Motion primitives or use LazyMotion with domAnimation when optimizing bundle size for high-traffic public pages.
  • Exit Transitions: When animating components in and out of the DOM, always wrap them in <AnimatePresence mode="wait"> and ensure child elements have stable, unique key attributes.

Common Mistakes

MistakeWhy it failsCorrect approach
Adding "use client" to page.tsxEliminates Server Component streaming and degrades SEO.Keep page.tsx as server component; extract animated views into client components.
Animating height: 0 to height: autoForces expensive layout reflow every frame.Use layout animation or animate scaleY and opacity.
Omitting keys in AnimatePresenceMotion cannot track which element entered or left.Supply unique key={id} to immediate children.
Forgetting reduced-motion checksHarms users with motion sensitivity.Use useReducedMotion() hook or CSS media query.

Version and changelog

Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.

1.0.0: initial release.

Build with this skill

Create Demo Project

Install in CLI

$ devbuild add skill nextjs-animated-ui

Dependencies are resolved automatically.

Free. Needs a free account: run devbuild login once.

IDnextjs-animated-ui
Version1.0.0
TierFree
DevBuildKit

Your entire AI development team. One install.

DevBuildKit never uploads your source code. Telemetry is opt-in and anonymous.

Product

  • Agents
  • Skills
  • Commands
  • Packs
  • Features
  • Live demo
  • Pricing

Learn

  • Documentation
  • Getting started
  • CLI reference
  • Blog
  • Changelog
  • Compare

Free tools

  • All tools
  • Agent generator
  • Config converter
  • Stack detector
  • Context analyzer

Use cases

  • Android development
  • iOS development
  • SaaS development
  • Backend development
  • App Factory
  • Game development

Company

  • Terms
  • Privacy
  • Refunds
  • Log in
  • Sign up

© 2026 DevBuildKit. All rights reserved.

DevBuildKit is an independent product. Claude, Claude Code, Anthropic, OpenAI, Codex, ChatGPT, Cursor, Visual Studio Code, GitHub Copilot, Microsoft and all other product names are trademarks of their respective owners. DevBuildKit is not affiliated with, endorsed by or sponsored by any of them; names are used only to describe compatibility.