25 CSS Hacks Every Developer Should Know

CSS animations

Problem: adding animations to elements.

Solution: use `@keyframes`.

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.bounce {
  animation: bounce 2s infinite;
}