A worked example, rendered from real sample data. Sign in to run the tool on your own input.
bg=#fff border=#e5e7eb.dropdown { position: relative; display: inline-block; }
.dropdown .menu {
position: absolute; top: calc(100% + 6px); left: 0;
min-width: 180px; background: #fff;
border: 1px solid #e5e7eb; border-radius: 8px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1); padding: 6px;
opacity: 0; pointer-events: none; transform: translateY(-4px); transition: all 160ms ease;
}
.dropdown:hover .menu, .dropdown:focus-within .menu { opacity: 1; pointer-events: auto; transform: none; }
.dropdown .menu a { display: block; padding: 8px 12px; border-radius: 6px; color: #374151; text-decoration: none; }
.dropdown .menu a:hover { background: #f3f4f6; }
Hover + focus-within dropdown — zero JS, animated. Part of the DevTools Surf developer suite. Browse more tools in the CSS collection.