Use the View Transitions API for smooth page and component transitions

SkillMedia

View-transitions is a skill that guides an AI agent through adding page transition animations, image expand/contract effects, and shared-element transitions using the View Transitions API. It helps improve navigation UX in single-page or multi-page applications by replacing jarring instant page changes with smooth transitions that keep users oriented.

Available today. Use it from your connected AI after setup.

Have a single-page or multi-page web application where navigation feels abrupt.

Then ask your AI: use the Use the View Transitions API for smooth page and component transitions skill

What your AI can do with it

  • Implement same-page transitions with document.startViewTransition()
  • Enable cross-document navigation with @view-transition { navigation: auto }
  • Create shared-element transitions using view-transition-name
  • Customise animations with @starting-style and ::view-transition-* pseudo-elements
  • Review code for missing prefers-reduced-motion guards and duplicate view-transition-name v
  • Explain how the API captures before/after snapshots and animates between them

Getting started

  1. Have a single-page or multi-page web application where navigation feels abrupt.
  2. Load the view-transitions skill so the agent can apply its rules and references.
  3. Ask the agent to add view transitions to route changes or cross-document navigation.
  4. Request a code review pass for reduced-motion guards and unique view-transition-name values.

What this skill tells your AI

The instructions your AI receives, as published by thedaviddias/front-end-checklist in skills/view-transitions/SKILL.md and read by ahel’s review.

Jarring instant page changes are one of the most noticeable perceived- performance problems in web applications. Smooth transitions help users maintain context during navigation — they understand where they came from and where they are going. Previously, achieving this required complex JavaScript animation libraries; the View Transitions API delivers it natively at a fraction of the code cost.

Quick Reference

  • Wrap DOM mutations in document.startViewTransition() for same-page transitions
  • Add view-transition-name to elements that should animate individually (not the whole page)
  • Use @starting-style and ::view-transition-* pseudo-elements to customise animations
  • Enable cross-document transitions in CSS with @view-transition { navigation: auto }

Check

Check whether the site uses the View Transitions API or a JavaScript animation library for page and component transitions.

Fix

Implement view transitions using document.startViewTransition() for SPA route changes or @view-transition for MPA cross-document navigation.

Explain

Explain how the View Transitions API captures before/after snapshots and animates between them, and how view-transition-name enables shared-element transitions.

Code Review

Review transition implementation for missing prefers-reduced-motion guards, duplicate view-transition-name values (must be unique per snapshot), and transitions that may cause layout thrash in the old/new state.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/en/rules/css/view-transitions

Signals

GitHub stars
74k
Forks
7k
Last commit
Aug 2026

Questions

When should this skill be used?
When adding page transition animations, image expand/contract effects, shared-element transitions, or improving navigation UX in a single-page or multi-page application.
Does it replace JavaScript animation libraries?
The skill notes that smooth transitions previously required complex JavaScript animation libraries, and that the View Transitions API delivers them natively with much less code.
Advanced
Item type
skill
Key
view-transitions
Source
github.com/thedaviddias/front-end-checklist