27 CSS Button Hover Effects 19 / 27

Hard Shadow Shift

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

Pure CSS MIT licensed
Live Demo Open in tab
Open in playground

The code

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

.bhe-19__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-19__btn:hover {
  box-shadow: 8px 8px 0 #7c6cff;
  transform: translate(-2px, -2px);
}
.bhe-19__btn:active {
  box-shadow: 2px 2px 0 #0a0a0f;
  transform: translate(2px, 2px);
}

Search CodeFronts

Loading…