36 CSS Button Hover Effects03 / 36

Pure CSSMIT licensed

Frosted Glassmorphism Shimmer Glow

The modern SaaS / Apple-style glass CTA: a translucent frosted pill that blurs the background, with a hairline light rim, and on hover a diagonal shimmer beam sweeps across at 45 degrees like light on a wet lens.

Published

Live Demo
Try it

The code

<div class="bhe-03-group">
<section class="bhe-03a" aria-label="Frosted glass shimmer button">
  <button class="bhe-03a__btn" type="button"><span class="bhe-03a__label">Download app</span></button>
</section>
<section class="bhe-03b" aria-label="Tinted glass glow button">
  <button class="bhe-03b__btn" type="button"><span class="bhe-03b__label">Open dashboard</span></button>
</section>
</div>
.bhe-03-group {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
}

.bhe-03-group > section {
  flex: 1 1 340px;
  min-width: 300px;
}

.bhe-03a,
.bhe-03a *,
.bhe-03a *::before,
.bhe-03a *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.bhe-03a {
  --tint: color-mix(in oklab,white 16%,transparent);
  font-family: 'Segoe UI',system-ui,sans-serif;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 56px 24px;
  background: url('https://picsum.photos/seed/bheglass/1200/800') center/cover,#14213d;
}

.bhe-03a__btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  padding: 17px 40px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 9999px;
  cursor: pointer;
  background: var(--tint);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6),inset 0 -8px 18px -12px rgba(0,0,0,.5),0 16px 34px -18px rgba(0,0,0,.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: transform .2s,box-shadow .3s;
}

.bhe-03a__label {
  position: relative;
  z-index: 1;
}

.bhe-03a__btn::after {
  content: "";
  position: absolute;
  top: -20%;
  left: 0;
  width: 55%;
  height: 140%;
  background: linear-gradient(105deg,transparent 25%,rgba(255,255,255,.6) 50%,transparent 75%);
  transform: translateX(-180%) skewX(-16deg);
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
  z-index: 2;
}

.bhe-03a__btn:hover {
  transform: translateY(-2px);
}

.bhe-03a__btn:hover::after {
  transform: translateX(260%) skewX(-16deg);
}

.bhe-03a__btn:active {
  transform: translateY(0) scale(.97);
}

.bhe-03a__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .bhe-03a__btn,
    .bhe-03a__btn::after {
    transition: none;
  }

  .bhe-03a__btn:hover::after {
    transform: translateX(-180%) skewX(-16deg);
  }
}

.bhe-03b,
.bhe-03b *,
.bhe-03b *::before,
.bhe-03b *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.bhe-03b {
  --glow: oklch(0.7 0.16 265);
  font-family: 'Segoe UI',system-ui,sans-serif;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 56px 24px;
  background: url('https://picsum.photos/seed/bheglass2/1200/800') center/cover,#1a1030;
}

.bhe-03b__btn {
  position: relative;
  isolation: isolate;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  padding: 17px 42px;
  border: 1px solid color-mix(in oklab,var(--glow) 50%,white);
  border-radius: 14px;
  cursor: pointer;
  background: color-mix(in oklab,var(--glow) 22%,transparent);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5),0 12px 30px -16px rgba(0,0,0,.7);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: box-shadow .35s,transform .25s;
}

.bhe-03b__label {
  position: relative;
  z-index: 1;
}

.bhe-03b__btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6),0 0 0 1px color-mix(in oklab,var(--glow) 70%,transparent),0 18px 40px -14px var(--glow);
}

.bhe-03b__btn:active {
  transform: translateY(0) scale(.98);
}

.bhe-03b__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .bhe-03b__btn {
    transition: box-shadow .2s;
  }
}
/* No JavaScript — pure CSS; all designs for this title are driven entirely by the css field. */
Paste this into ChatGPT, Claude, Cursor, or any coding assistant. The block below is pre-framed with everything the AI needs to integrate this demo into your project — markup, styles, scoping notes, and the source URL. Hit Copy and paste straight into your chat.
Here's a working CSS Button Hover Effect from CodeFronts. Use it as-is or adapt to your framework. All classes are scoped under a unique prefix so the code won't collide with your existing styles. MIT licensed.
Demo: Frosted Glassmorphism Shimmer Glow
Source: https://codefronts.com/motion/css-button-hover-effects/frosted-glassmorphism-shimmer-glow/

The modern SaaS / Apple-style glass CTA: a translucent frosted pill that blurs the background, with a hairline light rim, and on hover a diagonal shimmer beam sweeps across at 45 degrees like light on a wet lens.
## HTML
```html
<div class="bhe-03-group">
<section class="bhe-03a" aria-label="Frosted glass shimmer button">
  <button class="bhe-03a__btn" type="button"><span class="bhe-03a__label">Download app</span></button>
</section>
<section class="bhe-03b" aria-label="Tinted glass glow button">
  <button class="bhe-03b__btn" type="button"><span class="bhe-03b__label">Open dashboard</span></button>
</section>
</div>
```
## CSS
```css
.bhe-03-group {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
}

.bhe-03-group > section {
  flex: 1 1 340px;
  min-width: 300px;
}

.bhe-03a,
.bhe-03a *,
.bhe-03a *::before,
.bhe-03a *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.bhe-03a {
  --tint: color-mix(in oklab,white 16%,transparent);
  font-family: 'Segoe UI',system-ui,sans-serif;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 56px 24px;
  background: url('https://picsum.photos/seed/bheglass/1200/800') center/cover,#14213d;
}

.bhe-03a__btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  padding: 17px 40px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 9999px;
  cursor: pointer;
  background: var(--tint);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6),inset 0 -8px 18px -12px rgba(0,0,0,.5),0 16px 34px -18px rgba(0,0,0,.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: transform .2s,box-shadow .3s;
}

.bhe-03a__label {
  position: relative;
  z-index: 1;
}

.bhe-03a__btn::after {
  content: "";
  position: absolute;
  top: -20%;
  left: 0;
  width: 55%;
  height: 140%;
  background: linear-gradient(105deg,transparent 25%,rgba(255,255,255,.6) 50%,transparent 75%);
  transform: translateX(-180%) skewX(-16deg);
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
  z-index: 2;
}

.bhe-03a__btn:hover {
  transform: translateY(-2px);
}

.bhe-03a__btn:hover::after {
  transform: translateX(260%) skewX(-16deg);
}

.bhe-03a__btn:active {
  transform: translateY(0) scale(.97);
}

.bhe-03a__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .bhe-03a__btn,
    .bhe-03a__btn::after {
    transition: none;
  }

  .bhe-03a__btn:hover::after {
    transform: translateX(-180%) skewX(-16deg);
  }
}

.bhe-03b,
.bhe-03b *,
.bhe-03b *::before,
.bhe-03b *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.bhe-03b {
  --glow: oklch(0.7 0.16 265);
  font-family: 'Segoe UI',system-ui,sans-serif;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 56px 24px;
  background: url('https://picsum.photos/seed/bheglass2/1200/800') center/cover,#1a1030;
}

.bhe-03b__btn {
  position: relative;
  isolation: isolate;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  padding: 17px 42px;
  border: 1px solid color-mix(in oklab,var(--glow) 50%,white);
  border-radius: 14px;
  cursor: pointer;
  background: color-mix(in oklab,var(--glow) 22%,transparent);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5),0 12px 30px -16px rgba(0,0,0,.7);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: box-shadow .35s,transform .25s;
}

.bhe-03b__label {
  position: relative;
  z-index: 1;
}

.bhe-03b__btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6),0 0 0 1px color-mix(in oklab,var(--glow) 70%,transparent),0 18px 40px -14px var(--glow);
}

.bhe-03b__btn:active {
  transform: translateY(0) scale(.98);
}

.bhe-03b__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .bhe-03b__btn {
    transition: box-shadow .2s;
  }
}
```

## JavaScript
```js
/* No JavaScript — pure CSS; all designs for this title are driven entirely by the css field. */
```

How this works

backdrop-filter: blur() saturate() over a translucent fill frosts the backdrop, and an inset hairline reads as glass thickness. A ::after diagonal gradient parked off-edge transitions across on hover for the shimmer.

The sweep composites cleanly, and :focus-visible shows a bright ring over busy backdrops.

Make it yours

  • Push blur/saturate for realism (cap ~24px for INP).
  • Change the shimmer angle and skew.
  • Tint via --tint with color-mix().
  • Slow the sweep by lengthening the transition.

Gotchas — read before shipping

  • backdrop-filter needs a non-opaque layer behind it — place over an image/gradient.
  • Add -webkit-backdrop-filter and isolation:isolate.
  • Keep the label on a solid-enough tint for WCAG contrast.

Browser support

ChromeSafariFirefoxEdge
111+16.2+113+111+

Floor set by oklch(), color-mix(), backdrop-filter as this demo is written. The core technique itself goes back further — Chrome 76+.

backdrop-filter is progressive — without it the button is a semi-solid frosted capsule that still shimmers.

Techniques used in this demo

Search CodeFronts

Loading…