CSS Live Preview Available

Bounce Animation Effect

Playful bounce animation for UI elements on interaction

CSS3AnimationBounceKeyframesHover

Code

.bounce-effect {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
.bounce-effect:hover {
  animation: bounce 0.6s ease;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

HTML

<"attr-name"</span>>class</span>="tag"</span>>div</span> "attr-name"</span>>class</span>="bounce-effect"</span>>Bounce</"attr-name"</span>>class</span>="tag"</span>>div</span>>

Live Preview