buttons

Shimmer Button

A sleek action button featuring an animated sweeping light shimmer, subtle gradient border glow, and interactive hover elevation.

#button#shimmer#glow#gradient#action#cta
/* Shimmer Button */
.shimmer-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #171918;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px -2px color-mix(in srgb, #171918 30%, transparent);
  cursor: pointer;
  transition: all 0.25s ease;
}

.shimmer-btn:hover {
  filter: brightness(1.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px -2px color-mix(in srgb, #171918 45%, transparent);
  transform: translateY(-1px);
}

.shimmer-btn:active {
  transform: translateY(0) scale(0.98);
}

.shimmer-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(-100%);
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 80%
  );
  animation: shimmer-sweep 3s infinite ease-in-out;
}

@keyframes shimmer-sweep {
  0% {
    transform: translateX(-100%);
  }
  50%, 100% {
    transform: translateX(100%);
  }
}
PLAYGROUND

Customize

Button color#171918
Corner radius12px
ACCESSIBILITY

Built for real interfaces

Decorative elements should not be the only way important information is communicated.

RESPONSIVE USAGE

Works at every width

Use flexible sizing and sensible boundaries so components adapt smoothly across screens.

QUICK START
  1. 1Copy the HTML into your page.
  2. 2Add the CSS to your stylesheet.
  3. 3Adjust the values to match your design.
No dependencies required.

KEEP EXPLORING

Related components