• css3文字颜色从左到右动画


    1、代码

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
    .test {
    428px;
    height: 32px;
    border: 1px solid black;
    text-align: center;
    }

    #gradent {
    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-text-fill-color: transparent;*/
    -webkit-animation: slidetounlock 3s infinite;
    line-height: 32px;
    display: inline-block;
    200px;
    }

    @keyframes slidetounlock {
    0% {
    background-position: -100px 0
    }
    100% {
    background-position: 100px 0
    }
    }
    </style>
    </head>
    <body>
    <div onclick="test()" class="test">
    <span id="gradent">请按住滑块,拖动到最右边</span></div>

    </body>
    </html>
    热爱前端技术
  • 相关阅读:
    hdu5833----高斯消元
    高斯消元模板
    hdu4462--曼哈顿距离
    卡特兰数应用
    poj3070矩阵快速幂求斐波那契数列
    poj1042
    poj1328
    mvc 请求处理管道
    sql update 代替游标写法
    sql 表字段模糊连接
  • 原文地址:https://www.cnblogs.com/lcosima/p/9364915.html
Copyright © 2020-2023  润新知