← Back to Examples

CSS Animations

Keyframe animations for complex, multi-step effects!

1. Basic Animations

Pulse

pulse

Bounce

bounce

Spin

spin

Shake

shake

2. Entrance Animations

Fade In

fadeIn

Slide In

slideIn

Float

float

3. Color Animation

Color Change

4. Loading Indicators

Spinner

Bouncing Dots

5. Progress Bar

6. Typing Effect

Welcome to CSS Animations!

7. Heart Beat

8. Hover Animation (Wobble)

Hover me!

9. Staggered Animation

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.4s; }
.card:nth-child(4) { animation-delay: 0.6s; }

Animation Syntax Reference

@keyframes animationName {
    0% { /* starting state */ }
    50% { /* middle state */ }
    100% { /* ending state */ }
}

.element {
    animation: animationName 1s ease infinite;
    /* OR expanded: */
    animation-name: animationName;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-fill-mode: forwards;
    animation-delay: 0.5s;
}

← Back to Examples