Sow nothing reap nothing

css3文字渐变滑动

已有1,437次关注

@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm){
    类样式名称{
        background:-webkit-gradient(linear,left top,right top,color-stop(0,#4d4d4d),color-stop(.4,#4d4d4d),color-stop(.5,#fff),color-stop(.6,#4d4d4d),color-stop(1,#4d4d4d));
        -webkit-background-clip:text;
        -webkit-text-fill-color:transparent;
        -webkit-animation:slidetounlock 3s infinite;
        -webkit-text-size-adjust:none;
        }
    }
    @-webkit-keyframes slidetounlock{0%{background-position:-160px 0}100%{background-position:160px 0}
}

已自动关闭评论