/* @-webkit-keyframes hueRotate {
100% {
filter: hue-rotate(360deg);
}
} */
@keyframes hueRotate {
100% {
filter: hue-rotate(360deg);
}
}
.bg1 {
width: 100vw;
height: 100vh;
margin: auto;
background: linear-gradient(30deg, #ffcc00, deeppink, #9c27b0);
/* -webkit-animation: hueRotate 5s infinite alternate; */
animation: hueRotate 5s infinite alternate;
}
【前端】一行代码造就的渐变动态背景,hue-rotate属性
于 2024-03-04 16:31:41 首次发布