pseudo-elements
Back to list

raphaelsalaja/pseudo-elements

Pseudo Elements

GitHub

Audit CSS pseudo-elements and View Transitions usage for hover effects, decorative layers, and transitions.

127 installsMotionVisualFrontend4 demos

Real-world examples

Live HTML demos for this skill — rendered directly in the page. 4 examples.

  1. 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.

  2. 02

    Expanded hit targets

    Icon links grow their clickable area via ::before with negative inset — no wrapper divs. Dashed outline shows the expanded target.

  3. 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.

  4. 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