/trove-dev:trove-react-view-transitionsfrom trove-dev
Implements smooth, native-feeling animations in React using the View Transition API. Covers page transitions, shared element morphs, Suspense reveals, and list identity animations without third-party libraries.
Ships in trove-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill ships Trove conventions. Prefer existing project patterns over generic best practices when they conflict.
Animate between UI states using the browser's native View Transition API.
Declare what animates with <ViewTransition>, trigger when with
startTransition, useDeferredValue, or Suspense, and control how with CSS
classes from references/css-recipes.md. Unsupported browsers skip animations.
This skill assumes a Vite-based React app (React Router, not Next.js
App Router). <ViewTransition> and addTransitionType are stable in React 19.3,
so use react and react-dom 19.3 or newer and verify with npm ls react.
Earlier stable versions do not include these APIs. The references/nextjs.md
file is only for future Next.js work.
references/implementation.md - required workflow when adding transitions.references/css-recipes.md - CSS recipes to copy into the global stylesheet.references/patterns.md - examples, events API, timing, and troubleshooting.references/nextjs.md - Next.js App Router reference only.Do not inline those references into the conversation. Load the relevant file when the implementation step needs it.
Every transition must communicate continuity or spatial relationship. If you cannot name what the motion communicates, skip it.
Apply every fitting pattern in this order:
| Priority | Pattern | Communicates |
|---|---|---|
| 1 | Shared element (name) | Same thing, going deeper |
| 2 | Suspense reveal | Data loaded |
| 3 | List identity (key) | Same items, new arrangement |
| 4 | State change (enter/exit) | Something appeared/disappeared |
| 5 | Route change | Going to a new place |
Use directional slides only for hierarchy or ordered sequences. Lateral tabs should use a cross-fade or no animation.
references/implementation.md and start with the audit. Map every
<Link>, router navigation, <Suspense> boundary, page component,
persistent element, and shared visual element.references/css-recipes.md into the
global stylesheet before wiring components.viewTransitionName.addTransitionType inside
startTransition, then wrap page components, not layouts, in a type-keyed
<ViewTransition>.name values such as
photo-${id} and add fallback enter/exit when a pair might not form.default="none", persistent element isolation, and reduced
motion.startTransition, useDeferredValue, or Suspense activate React view
transitions. Regular setState does not animate.<ViewTransition> must appear before any DOM node it needs to animate.
Wrapping the VT inside a <div> suppresses enter/exit.default="none" and explicit triggers. Bare VTs cross-fade on every
transition, including revalidation and background updates.default: "none" unless broad cross-fades are
intentional.enter with exit; otherwise the old page vanishes while the new one
animates.router.back() and browser back/forward do not trigger view transitions;
navigate to an explicit URL instead.Run the app and inspect the real transitions, including reduced-motion mode. Check desktop and mobile viewports. Confirm that unsupported browsers degrade to no animation rather than broken layout or invisible content.
Upstream: vercel-labs/agent-skills react-view-transitions (MIT). Adapted
for the Trove marketplace.
What SKILL.md sets; muted values are Claude Code's defaults
view transition; shared element animation; page transition; startViewTransition
Three short reads, in order
17 skills in this plugin
/trove-architectDesign the shape before the code: sketch types, signatures, and module structure with not-implemented bodies, agree, then fill in. Scrap the sketch when implementation proves it wrong. Use for non-trivial work where jumping straight to code would lock in the wrong shape./trove-commitGit commit workflow and message conventions. Use when creating, drafting, or reviewing atomic commits with conventional messages./trove-docs-sync-auditRead-only documentation drift audit comparing what the docs claim against what the code does. Covers READMEs, setup guides, API and env docs, changelogs, examples, and generated docs. Use when asked whether docs are stale, missing, or inconsistent after a code change. This is not a code review./trove-explainExplain code, architecture, or data flow at the appropriate level for the audience. Use when someone needs to understand unfamiliar code, a module, or system design./trove-lambdaAWS Lambda handler patterns with CDK infrastructure conventions. Auto-activates when working with Lambda handler or CDK files. Covers handler structure, SQS/SNS parsing, IPC patterns, Powertools logging, and CDK best practices./trove-perfDiagnose and fix a measured performance problem against a baseline: measure first, fix, re-measure, and cite the delta with an artifact path. Use for slow endpoints, slow queries, or any "make this faster" backed by a measurement.npx claudepluginhub bravew/trove --plugin trove-devOther plugins' skills for the same job