21 CSS Button Hover Effects

Hard Shadow Shift

Brutalist hard offset shadow shifts both position and color on hover, snaps back on click.

Pure CSS MIT licensed

Hard Shadow Shift the 13th of 21 designs in the 21 CSS Button Hover Effects collection. The design is implemented in pure CSS — no JavaScript required. Copy the HTML and CSS panels below into your project. Because the demo is pure CSS, it works in any framework or templating engine you happen to use. The design honours prefers-reduced-motion and uses real semantic markup, so it ships accessibility-ready out of the box.

Live preview

Open in playground

The code

<button class="bhe-13__btn">CLICK ME</button>
.bhe-13__btn {
  padding: 12px 32px;
  font-size: 13.5px;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  color: inherit;
}

.bhe-13__btn {
  color: #0a0a0f;
  background: #f0eeff;
  border: 2px solid #0a0a0f;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  box-shadow: 4px 4px 0 #0a0a0f;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.bhe-13__btn:hover {
  box-shadow: 8px 8px 0 #7c6cff;
  transform: translate(-2px, -2px);
}
.bhe-13__btn:active {
  box-shadow: 2px 2px 0 #0a0a0f;
  transform: translate(2px, 2px);
}

Search CodeFronts

Loading…