讓文字發出炫酷的光效果
阿新 • • 發佈:2018-01-22
round 分享 bgp 發出 .com gre bsp mask ini
.colorful {
/* -webkit-mask-image: linear-gradient(to right, red, orange, yellow, green, cyan, blue, purple); */
background-image: linear-gradient(to right, red, orange, yellow, green, yellow, orange, red, orange, yellow, green, yellow, orange, red);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
-webkit-background-size: 200% 100%;
animation: bgp 5s infinite linear;
}
@keyframes bgp{
0% {
background-position: 0 0;
}
100% {
background-position: -100% 0;
}
}
讓文字發出炫酷的光效果