I have developed animations featuring diagonally moving circular patterns.
div {
width: 100%;
height: 100vh;
background-image: radial-gradient(#85c79f 7px, transparent 7px), radial-gradient(#fc536c 7px, transparent 7px), radial-gradient(#e99377 7px, transparent 7px), radial-gradient(#ebe49a 7px, transparent 7px);
animation: animation1 5s infinite linear;
background-size: 100px 100px;
}
@keyframes animation1 {
from {
background-position: 0 0, 50px 0, 25px 50px, 75px 50px;
}
to {
background-position: -100px -100px, -50px -100px, -75px -50px, -25px -50px;
}
}
<div></div>
I am interested in transforming this into an animation where each circle expands outwards from the center of the viewport.
However, as the background-image
property is not Animatable, I am uncertain about how to execute this effect.
Could you provide guidance on achieving this?