buttons

Hover Button

An interactive action button featuring a fluid slide-up liquid fill effect on hover, magnetic arrow animation, and tactile click feedback.

#button#hover#interactive#animation#action#cta
/* Hover Button */
.hover-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  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 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px -2px rgba(98, 93, 232, 0.35);
}

.hover-btn:active {
  transform: scale(0.98);
}

.hover-btn-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #625de8, #8584c2);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  border-radius: 12px;
}

.hover-btn:hover .hover-btn-fill {
  transform: translateY(0);
}

.hover-btn-content {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hover-btn-icon-leading {
  transition: transform 0.3s ease;
}

.hover-btn:hover .hover-btn-icon-leading {
  transform: scale(1.1);
}

.hover-btn-icon-trailing {
  transition: transform 0.3s ease, color 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
}

.hover-btn:hover .hover-btn-icon-trailing {
  transform: translateX(4px);
  color: #ffffff;
}
PLAYGROUND

Customize

Button colorlinear-gradient(90deg, #625de8, #8584c2)
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