codepenz
← Back to catalog

City Guide Expanding List

A vertical city list where hovering an item grows it to reveal a description and a fading-in photo, while its neighbors grow slightly too and every other row dims — all driven by :hover, :focus-within, and :has() sibling selectors, no JavaScript.

ComponentsEffectscss-onlyhas-selectorhover-reveallist
Added July 9, 2026