Audit CSS pseudo-elements and View Transitions usage for hover effects, decorative layers, and transitions.
Real-world examples
Live HTML demos for this skill — rendered directly in the page. 4 examples.
- 01
Decorative layers without DOM
Hover buttons built with ::before/::after — content required, relative parent, z-index under text. No extra span for the wash or border glow.
- 02
Expanded hit targets
Icon links grow their clickable area via ::before with negative inset — no wrapper divs. Dashed outline shows the expanded target.
- 03
View Transitions on cards
Shared-element morph with unique view-transition-name, cleanup after swap, and custom ::view-transition-group / ::view-transition-old|new timing.
- 04
Native ::backdrop & friends
Dialog uses ::backdrop instead of an overlay div; inputs use ::placeholder; page uses ::selection — no fake placeholder spans.
More from raphaelsalaja
- 12 Principles Of AnimationApply Disney's 12 animation principles to web interfaces to make motion feel natural, organic, and human.
- Generating Sounds With AiAudit Web Audio API code for procedural sound synthesis quality, UX decisions, and parameter best practices.
- Mastering Animate PresenceAudit Motion and Framer Motion exit/presence patterns with practical fixes for AnimatePresence usage.
- Morphing IconsBuild icon components that morph between SVG shapes with smooth, line-based transformation.
- Sounds On The WebAudit interface sound feedback for UX quality, accessibility, and practical implementation patterns.
- To Spring Or Not To SpringAudit animation timing choices to decide when springs versus easing curves produce better motion.