Particle Button

A button with particle explosion effect on hover using CSS animations.

button
particle
animation
hover

Preview

Loading preview...

HTML

<button class="particle-button">Particle Effect</button>

CSS

.particle-button {
  position: relative;
  padding: 16px 32px;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.particle-button:hover {
  transform: scale(1.05);
}
.particle-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}
.particle-button:hover::before {
  width: 300px;
  height: 300px;
  opacity: 0;
}
.particle-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.particle-button:hover::after {
  transform: translateX(100%);
}

© 2025 AnyCSS. All rights reserved.