vercel-react-view-transitions

vercel-react-view-transitions is a skill for Claude Code from laguagu/claude-code-nextjs-skills. It costs 128 tokens per session (3,496 once invoked), scanned A, a copy of vercel-react-view-transitions, MIT.

A guide for adding browser-native animations to React interfaces as pages, routes, lists, or components change.

In plain words
What is it for?
Use it for page transitions, route changes, shared element movement, list rearrangements, loading reveals, and component enter or exit animations.
Why use it?
It helps keep related interface elements visually connected during changes instead of making the screen switch abruptly.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions AGENTS.md.

Part of the nextjs-ai-skills plugin — 24 skills shipped together

Good fit Use it for page transitions, route changes, shared element movement, list rearrangements, loading reveals, and component enter or exit animations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/laguagu/claude-code-nextjs-skills/vercel-react-view-transitions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add laguagu/claude-code-nextjs-skills --skill vercel-react-view-transitions
Clone the repo
git clone --depth 1 https://github.com/laguagu/claude-code-nextjs-skills

Made for: Claude Code.

Or install nextjs-ai-skills, the plugin that ships this one along with the rest of its 24 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vercel-react-view-transitions

README.md
[![agentmods](https://agentmods.dev/badge/skills/laguagu/claude-code-nextjs-skills/vercel-react-view-transitions/github.svg)](https://agentmods.dev/skills/laguagu/claude-code-nextjs-skills/vercel-react-view-transitions)
Your own site
<a href="https://agentmods.dev/skills/laguagu/claude-code-nextjs-skills/vercel-react-view-transitions"><img src="https://agentmods.dev/badge/skills/laguagu/claude-code-nextjs-skills/vercel-react-view-transitions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vercel-react-view-transitions

Your own site · 80×15
<a href="https://agentmods.dev/skills/laguagu/claude-code-nextjs-skills/vercel-react-view-transitions"><img src="https://agentmods.dev/badge/skills/laguagu/claude-code-nextjs-skills/vercel-react-view-transitions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,496 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 91% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00128 $0.03496
Opus 5.5 $0.00051 $0.01398
Sonnet 5.5 $0.00026 $0.00699
Haiku 4.5 $0.00013 $0.00350

Measured 16d ago against content hash 96284f3533ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vercel-react-view-transitions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

91% identical to vercel-react-view-transitions — 57 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/vercel-react-view-transitions/SKILL.md · 334 lines

How it starts

The opening of the file, as written. The whole thing — 334 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React View Transitions

Animate between UI states using the browser's native document.startViewTransition. Declare what with <ViewTransition>, trigger when with startTransition / useDeferredValue / Suspense, control how with CSS classes. Unsupported browsers skip animations gracefully.

When to Animate

Every <ViewTransition> should communicate a spatial relationship or continuity. If you can't articulate what it communicates, don't add it.

Choose patterns that serve the requested interaction:

Priority Pattern What it communicates
1 Shared element (name) "Same thing — going deeper"
2 Suspense reveal "Data loaded"
3 List identity (per-item key) "Same items, new arrangement"
4 State change (enter/exit) "Something appeared/disappeared"
5 Route change (page-level) "Going to a new place"

Start with the smallest useful motion change. Add other patterns only when they improve orientation or continuity; preserve reduced-motion behavior.

Choosing Animation Style

Context Animation Why
Hierarchical navigation (list → detail) Type-keyed nav-forward / nav-back Communicates spatial depth
Lateral navigation (tab-to-tab) Bare <ViewTransition> (fade) or default="none" No depth to communicate
Suspense reveal enter/exit string props Content arriving
Revalidation / background refresh default="none" Silent — no animation needed

Reserve directional slides for hierarchical navigation (list → detail) and ordered sequences (prev/next photo, carousel, paginated results). For ordered sequences, the direction communicates position: "next" slides from right, "previous" from left. Lateral/unordered navigation (tab-to-tab) should not use directional slides — it falsely implies spatial depth.


Availability

  • Next.js: Since Next.js 16.3 <ViewTransition> works in the App Router with no configuration. Do not install react@canary — the App Router bundles its own React build. Do not add the old experimental.viewTransition flag; on 15.x canary–16.2 read the installed version's docs (see references/nextjs.md).
  • Without Next.js: React 19.3+ exports ViewTransition and addTransitionType from stable react. On older React they exist only in the Canary and Experimental channels.
  • TypeScript: @types/react 19.3+ declares both in index.d.ts. With older types, add /// <reference types="react/canary" /> instead of hand-writing a module augmentation.
  • Browser support: React's integration uses newer View Transitions API features (the startViewTransition options object with transition types, view-transition-class) — Chromium 125+, Firefox 147+, Safari 18.2+. Some animations may behave differently in Safari. Graceful degradation on unsupported browsers.

Read the full file on GitHub · 334 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed 96284f3533ad
  2. 1mo ago Changed b4ef3ef9aae9
  3. 2mo ago Changed · +5 lines f5fd988dec87
  4. 2mo ago Changed 6f2e5e4568ff
  5. 2mo ago Changed · +8 lines · +1 tokens per session 124dd94e380c
  6. 3mo ago First seen · 321 lines · 127 tokens per session scan A f8177d444a88

Subscribe to this mod's changes

vercel-react-view-transitions is a skill published in the GitHub repository laguagu/claude-code-nextjs-skills (75 stars, last pushed 3d ago), licensed MIT. It adds 128 tokens to every session and 3,496 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to vercel-react-view-transitions, differing in 57 lines, and is treated as a copy.

Related

vercel-react-view-transitions compared with skills from other repositories

vercel-react-view-transitions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vercel-react-view-transitionslaguagu/claude-code-nextjs-skillsSkill753d agoMITA128Claude Code
frontend-designmastra-ai/mastraSkill30ktodaynoneA77Claude Code, Codex
modern-site-engineeringTheGoat395/Codex-SkillsSkill1401mo agoMITA12Codex
frontend-designkrivoox/agent-stack-templateSkill302mo agoMITA40Claude Code, Codex
salgadoia-web-design-engineer-proLuispitik/salgadoia-web-design-engineer-proSkill57mo agononeC299Claude Code
chakra-ui-builderchakra-ui/chakra-uiSkill41ktodayMITA214Claude Code, Codex
magic-uimagicuidesign/magicuiSkill24ktodayMITA56Claude Code, Codex