文字闪闪发亮的css效果

#commentAlert{margin:0 0 0 8px;background-image: linear-gradient(to right, red, orange, yellow, green, blue, yellow, orange, red, orange, yellow, green, yellow, orange, red, green);-webkit-text-fill-color: transparent;-webkit-background-clip: text;-webkit-background-size: 200% 100%;-webkit-animation: commentAlert-animation 800ms infinite linear;}
@-webkit-keyframes commentAlert-animation {0%{ background-position: 0 0;} 100% { background-position: -100% 0;}}
<div id="commentAlert"></div>
标签:

发表评论