page-transitions

Implement Framer Motion route transitions and shared element animations in Next.js App Router.

1|Updated Jul 15, 2026
One-click install
npx skills add https://github.com/Dzakiamriz22/frontend-pack --skill page-transitions-dzakiamriz22
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: page-transitions
Source: https://github.com/Dzakiamriz22/frontend-pack/tree/main/skills/page-transitions
Command: npx skills add https://github.com/Dzakiamriz22/frontend-pack --skill page-transitions-dzakiamriz22

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the lack of smooth, professional navigation in web applications by providing standardized Framer Motion patterns that eliminate jarring page jumps and improve perceived performance.

Core Features & Use Cases

  • Route Transitions: Implements AnimatePresence wrappers for smooth entry and exit animations during navigation.
  • Shared Element Animations: Uses layoutId to create seamless transitions between list items and detail views.
  • Loading States: Provides patterns for skeleton-to-content morphing and route progress indicators.

Quick Start

Use the page-transitions skill to implement a fade and slide animation for all route changes in the application.

Frequently Asked Questions about page-transitions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create smooth page transitions in Next.js App Router?

Smooth page transitions in Next.js App Router are created by wrapping route layouts with AnimatePresence from Framer Motion to handle entry and exit animations. This eliminates jarring page jumps by providing standardized motion design patterns.

How do I animate shared elements between list and detail views in Next.js?

Shared element transitions between list and detail views are animated using the layoutId property in Framer Motion. This creates seamless visual morphing between elements as users navigate between different route views.

What's the best way to show skeleton-to-content loading states during route animations?

Skeleton-to-content loading states during route animations are implemented using Framer Motion morphing patterns combined with route progress indicators. This approach improves perceived performance by smoothly transitioning placeholder skeletons into loaded content.

Does the page-transitions skill work without template-based layout structures?

Template-based layout structures are required for consistent motion design implementation. The skill relies on these Next.js App Router templates to properly facilitate shared element transitions, loading states, and route progress indicators.

Why do my Next.js route changes feel jarring instead of fluid?

Route changes feel jarring without standardized Framer Motion animation patterns like AnimatePresence wrappers. Implementing fade and slide animations for route changes ensures navigation feels native and fluid instead of causing abrupt page jumps.

Can I use Framer Motion for route progress indicators in a Next.js application?

Framer Motion can be used to implement route progress indicators in Next.js applications. These indicators, alongside skeleton-to-content loading states, improve user experience by providing visual feedback during route navigation.