view-transitions
What it does
This skill adds smooth animations between page states and screens using the browser's View Transitions API. It is for developers building single-page or multi-page sites.
When to use it
- ✓When page changes feel abrupt and users lose track of where they are.
- ✓When an image should expand smoothly into a detail view.
- ✓When reviewing whether a site uses an animation library that the browser can now handle natively.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/view-transitions/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Switching between pages on my app feels jarring. Can you add smooth transitions without adding a big animation library?”
5 new skills a week. 1 minute to read.
How it works
The agent wraps page changes in the browser's transition call and names the elements that should animate on their own. The browser takes snapshots before and after, then animates between them.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Use the View Transitions API for smooth page and component transitions
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/rules/css/view-transitions
FAQ
Does this need a JavaScript library?
The skill says the View Transitions API is built into the browser, so it avoids much of the code that animation libraries need.
Should transitions respect reduced motion settings?
Yes. The skill flags missing prefers-reduced-motion guards as a problem to fix.
What is view-transition-name for?
It lets one element animate on its own, such as an image shared between two pages.
Details
Original description by the author
Use when adding page transition animations, image expand/contract effects, shared-element transitions, or improving navigation UX in a single-page or multi-page application.
Popularity
- GitHub stars
- 75k
- Ranking position
- #3077
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.