I need to know if it is possible to animate using CSS Animations a property
background: linear-gradient()
I am trying the following code (only valid for Chrome) and I cannot achieve the desired result.
If no possible with CSS Animations, can be solved using CSS Transitions, if yes could you please provide an example? Thanks.
#target {
width: 300px;
height: 300px;
margin: 0;
padding: 0;
background: linear-gradient(270deg, #18f0b8, #18a2f0, #db5640);
background-size: 600% 600%;
animation: Gradient 8s ease infinite;
}
@keyframes Gradient {
0% {
background: linear-gradient(270deg, #18f0b8, #18a2f0, #db5640);
background-position: 0% 50%
}
100% {
background: linear-gradient(270deg, #18f0b8, #18a2f0, #ffffff);
background-position: 0% 50%
}
}
<div id="target"></div>