Back to Components

Keyframe Art

Complex animation using multiple keyframes to create artistic patterns. Demonstrates advanced timing and transformation techniques.

Advanced Animations Art Creative

Live Preview

HTML

<div class="keyframe-art"></div>

CSS

.keyframe-art {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    animation: artTransform 4s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

@keyframes artTransform {
    0% {
        transform: rotate(0deg) scale(1);
        border-radius: 20px;
        background: linear-gradient(135deg, #667eea, #764ba2);
    }
    25% {
        transform: rotate(90deg) scale(1.2);
        border-radius: 50%;
        background: linear-gradient(135deg, #764ba2, #f093fb);
    }
    50% {
        transform: rotate(180deg) scale(0.8);
        border-radius: 0%;
        background: linear-gradient(135deg, #f093fb, #f5576c);
    }
    75% {
        transform: rotate(270deg) scale(1.2);
        border-radius: 50% 0 50% 0;
        background: linear-gradient(135deg, #f5576c, #667eea);
    }
    100% {
        transform: rotate(360deg) scale(1);
        border-radius: 20px;
        background: linear-gradient(135deg, #667eea, #764ba2);
    }
}