CSS Animations
Copy-paste CSS animations. Click any to copy the code.
Fade In
Click to copy@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.fade-in { animation: fadeIn 0.5s ease-in; }Slide Up
Click to copy@keyframes slideUp {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.slide-up { animation: slideUp 0.5s ease-out; }Bounce
Click to copy@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}
.bounce { animation: bounce 1s ease-in-out infinite; }Pulse
Click to copy@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.pulse { animation: pulse 2s ease-in-out infinite; }Spin
Click to copy@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; }Shake
Click to copy@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-5px); }
75% { transform: translateX(5px); }
}
.shake { animation: shake 0.5s ease-in-out; }Scale In
Click to copy@keyframes scaleIn {
from { transform: scale(0); }
to { transform: scale(1); }
}
.scale-in { animation: scaleIn 0.3s ease-out; }Flip
Click to copy@keyframes flip {
from { transform: perspective(400px) rotateY(0); }
to { transform: perspective(400px) rotateY(360deg); }
}
.flip { animation: flip 1s ease-in-out; }