Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Living wiki of UI design patterns and best practices built with Fumadocs, Next.js, and Base UI components.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
rules/transition-name-cleanup.md
1---2title: Clean Up View Transition Names3impact: MEDIUM4tags: view-transition, cleanup5---67## Clean Up View Transition Names89Remove view-transition-name after transition completes.1011**Incorrect (stale name):**1213```ts14sourceImg.style.viewTransitionName = "card";15document.startViewTransition(() => {16targetImg.style.viewTransitionName = "card";17});18```1920**Correct (name cleaned up):**2122```ts23sourceImg.style.viewTransitionName = "card";24document.startViewTransition(() => {25sourceImg.style.viewTransitionName = "";26targetImg.style.viewTransitionName = "card";27});28```29