Communitygithub.com

vercel-labs/vercel-react-view-transitions

ReactのView Transition API(<ViewTransition>コンポーネント、addTransitionType、CSSビュートランジション擬似要素)を使用して、スムーズでネイティブ感のあるアニメーションを実装するためのガイドです。

vercel-react-view-transitions とは?

このスキルは、Reactアプリケーションにおいて、サードパーティのアニメーションライブラリに頼らずに、ブラウザネイティブのView Transition APIを活用して、ページ遷移、ルート変更、共有要素アニメーション、コンポーネントの出入り、リストの並び替え、方向性ナビゲーション(前進/後退)などのアニメーションを実装するための包括的なガイドを提供します。特に、vercel-labs/vercel-react-view-transitions プロジェクトが提供する `useViewTransition`、`ViewTransition` コンポーネント、`addTransitionType` といったReact向けラッパーと、CSSの `::view-transition-old`、`::view-transition-new` 擬似要素を用いたカスタマイズ方法を中心に解説しています。Next.jsとの統合例も含まれており、開発者はこのスキルを利用することで、パフォーマンスが高く、ユーザー体験を向上させるスムーズな画面遷移を、シンプルなコードで実現できます。このスキルは、Claude Code、Cursor、CodexなどのAIエージェントが、ユーザーの要望に応じてView Transition APIを使用したアニメーションのコード生成や修正を行う際に使用されます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/vercel-labs/agent-skills/tree/main/skills/vercel-react-view-transitions

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

vercel-react-view-transitions は何をしますか?

ReactのView Transition API(<ViewTransition>コンポーネント、addTransitionType、CSSビュートランジション擬似要素)を使用して、スムーズでネイティブ感のあるアニメーションを実装するためのガイドです。このスキルは、ユーザーがページトランジションの追加、ルート変更のアニメーション、共有要素アニメーションの作成、コンポーネントの出入りのアニメーション、リストの並び替えのアニメーション、方向性(前進/後退)ナビゲーションアニメーションの実装、またはNext.jsでのビュートランジションの統合を望むときに使用します。また、ユーザーがビュートランジション、startViewTransition、ViewTransition、トランジションタイプについて言及した場合や、サードパーティのアニメーションライブラリを使わずにReactのUI状態間をアニメーションさせることについて尋ねた場合にも使用します。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

vercel-cli-with-tokens

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g.

vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with

vercel-labs/vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.

vercel-labs/vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

vercel-labs/vercel-react-native-skills

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

vercel-optimize

Use for Vercel cost and performance optimization on deployed projects, especially Next.js, SvelteKit, Nuxt, and limited Astro apps. Collect Vercel metrics, usage, project config, and code scan results first; investigate only metric-backed candidates; produce ranked recommendations grounded in verified files and version-aware Vercel/framework docs. Trigger for Vercel bill reduction, slow or expensive routes, caching opportunities, Function Invocations, Build Minutes, Fast Data Transfer, Core Web Vitals, Bot Management, Fluid compute, or cost breakdown requests.

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

vercel-react-native-skills

React Native and Expo best practices for building performant mobile apps. Use

web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to

writing-guidelines

Review docs/prose for Writing Guidelines compliance. Use when asked to

関連スキル