Artistic gradient painting effect with animated color transitions. Creates a dynamic canvas-like appearance using pure CSS.
<div class="css-painting"></div>
.css-painting {
width: 200px;
height: 200px;
border-radius: 20px;
background: linear-gradient(
45deg,
#667eea,
#764ba2,
#f093fb,
#f5576c,
#4ecdc4
);
background-size: 400% 400%;
animation: paintingFlow 8s ease infinite;
box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
position: relative;
overflow: hidden;
}
.css-painting::before {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(
circle at 50% 50%,
rgba(255, 255, 255, 0.2),
transparent 70%
);
animation: paintingPulse 3s ease-in-out infinite;
}
@keyframes paintingFlow {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
@keyframes paintingPulse {
0%, 100% {
opacity: 0.5;
transform: scale(1);
}
50% {
opacity: 1;
transform: scale(1.1);
}
}