Animated Button

Modern button with hover effects and ripple animation.

A button component with gradient background, hover lift effect, and ripple animation on hover.
animated-button.csscss
.btn-animated {
  position: relative;
  padding: 12px 32px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.btn-animated::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-animated:hover {
  transform: translateY(-2px);
}

.btn-animated:hover::before {
  width: 300px;
  height: 300px;
}

.btn-animated:active {
  transform: translateY(0);
}

Usage

Apply the .btn-animated class to any button element.

Let’s Build Something You’ll Be Proud Of

No fluff. Just thoughtful design and reliable development.

Work with me
Average response time: within 24 hours