Bracket reveal

Bracket reveal: a CSS button. Copy the rules, or the prompt that rebuilds it.

border-drawbracketstext-buttonminimal

CSS
.btn-068 {
  position: relative;
  font: 600 14px/1 ui-monospace,Menlo,monospace;
  color: #1f2937;
  background: none;
  border: 0;
  padding: 8px 18px;
  cursor: pointer
}
.btn-068::before,.btn-068::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity .15s,left .15s,right .15s
}
.btn-068::before {
  content: "[";
  left: 8px
}
.btn-068::after {
  content: "]";
  right: 8px
}
.btn-068:hover::before {
  opacity: 1;
  left: 2px
}
.btn-068:hover::after {
  opacity: 1;
  right: 2px
}
.btn-068:focus-visible {
  outline: 2px solid #1f2937;
  outline-offset: 2px
}
.btn-068:active {
  color: #6b7280
}
HTML
<button class="btn-068">Menu</button>
Prompt

A monospace text button (14px semibold, #1f2937, no box, 8px by 18px padding). On hover a "[" fades in on the left and a "]" on the right, each sliding 6px outward as it appears (150ms). Active greys the text. Focus outline 2px dark.