Elastic Button

A button with elastic bounce effect on hover and click interactions.

button
elastic
bounce
animation

Preview

Loading preview...

HTML

<button class="elastic-button">Elastic Bounce</button>

CSS

.elastic-button {
  padding: 16px 32px;
  background: linear-gradient(45deg, #4ecdc4, #45b7d1);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.elastic-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}
.elastic-button:active {
  transform: scale(0.95);
  transition: all 0.1s ease;
}
.elastic-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.elastic-button:hover::before {
  left: 100%;
}

© 2025 AnyCSS. All rights reserved.