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-style-pseudo-elements.md
1---2title: Style View Transition Pseudo-Elements3impact: MEDIUM4tags: view-transition, pseudo, styling5---67## Style View Transition Pseudo-Elements89Style view transition pseudo-elements for custom animations.1011**Incorrect (default crossfade only):**1213```ts14document.startViewTransition(() => { /* ... */ });15```1617**Correct (custom animation):**1819```css20::view-transition-group(card) {21animation-duration: 300ms;22animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);23}24```25