Popout menu: Reveals an interactive popout menu on hover and focus.

PHOTO EMBED

Mon Mar 08 2021 17:27:43 GMT+0000 (UTC)

Saved by @randomize_first #css #html

HTML
<div class="reference" tabindex="0"><div class="popout-menu">Popout menu</div></div>
  
CSS
.reference {
  position: relative;
  background: tomato;
  width: 100px;
  height: 100px;
}
.popout-menu {
  position: absolute;
  visibility: hidden;
  left: 100%;
  background: #333;
  color: white;
  padding: 15px;
}
.reference:hover > .popout-menu,
.reference:focus > .popout-menu,
.reference:focus-within > .popout-menu {
  visibility: visible;
}
content_copyCOPY