Agent skill Web motion
Pseudo Elements
Design, implement or review motion on the web.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/raphaelsalaja/skills/tree/f2ebb04413252993c5245f5920fdf91b09b1915e/skills/pseudo-elements --skill pseudo-elements --agent claude-code --yesCheck this file in your project.claude/skills/pseudo-elements/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/raphaelsalaja/skills/tree/f2ebb04413252993c5245f5920fdf91b09b1915e/skills/pseudo-elements --skill pseudo-elementsSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. The pinned Raphael audit skill v2.0.0 and a browser-testable project. Provide a plain state-update path when View Transitions are unavailable.
View operation manualWhat this skill helps with
- Design, implement or review motion on the web.
Good for
- Web motion and transitions
- Publisher
- Raphael Salaja
- Control points
- view-transition-name · startViewTransition() · finished
- Result
- A reviewed native transition that updates content and clears temporary view names.
- Skill name
pseudo-elements- Repository
raphaelsalaja/skills
Common pitfall
Avoid this prompt
Name every image card photo and leave the name set permanently.
Duplicate names in one captured state can skip the native transition; stale names make later changes harder to isolate.
Use these steps
- Inspect source and behavior
- Apply the documented technique
- Verify the original interaction
Project walkthrough
Review a native view transition between your own thumbnail and detail panel, with unique names and cleanup.
Review a native view transition between your own thumbnail and detail panel, with unique names and cleanup.
Inspect source and behavior
Inspect source and behavior
Prompt · Step 1Use Pseudo Elements v2.0.0 to audit [my gallery and detail styles]. Find existing decorative nodes and view-transition-name assignments. Record any duplicate names, missing cleanup, and actual source and destination elements with file:line rule IDs.Apply the documented technique
Apply the documented technique
Prompt · Step 2Apply the chosen fix to one flow. Give the clicked thumbnail a temporary unique name before document.startViewTransition(). In the update, clear the source name and transfer it to the visible destination while applying the actual UI state. Clear temporary names after transition.finished on completion or cancellation. Use the direct update when unsupported or motion is reduced.Verify the original interaction
Only one element owns the shared name in each capture state and neither view retains it later.
- Only one element owns the shared name in each capture state and neither view retains it later.
Prompt · Step 3Open one detail, go back and open another, then repeat with reduced motion. Check each DOM update, focus, the final computed view-transition-name on both thumbnails, and the behavior if the transition is skipped. Report the changed source lines and which audit issues cleared.
Implementation lookup
Find the documented inputs and verification target for this walkthrough.
Check the control pointsInputs
- Command or reference
view-transition-name · startViewTransition() · finished- Examples
- Only one element owns the shared name in each capture state and neither view retains it later.
FAQ
Can the basic gallery work without that API?
Yes. Use the same state update directly so the content and focus still change when the native transition is skipped.
Where are the instructions?
Open the installed SKILL.md and following references for the selected technique. The publisher link points to the revision verified for this handbook.