zoukankan      html  css  js  c++  java
  • 二维码扫描效果

        <!DOCTYPE">
        <html>
    
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <meta http-equiv="X-UA-Compatible" content="IE=edge" />
            <meta name="baidu-site-verification" content="d9oiSigqhs" />
            <meta name="baidu-site-verification" content="LPBhOoGxHp" />
            <style>
                .qr-code{
                    padding-top: 22px;
                    width: 100%;
                    height: 252px;
                    text-align: center;
                    background: #05c2df;
                }
                .qr-code div{
                    position: relative;
                    margin: 0 auto;
                    width: 200px;
                    height: 200px;
                    overflow: hidden;
                }
                .qr-code img{
                    width: 100%;
                    height: 100%;
                }
                .scanning{
                    width: 200px;
                    height: 0;
                    position: absolute;
                    top: 0;
                    left: 0;
                    display: inline-block;
                    background: rgba(26, 132, 190, 0.3);
                    border-bottom: 3px solid #4AB86A;
                    animation: move 5s linear infinite;
                    -webkit-animation: move 5s linear infinite;
                    -moz-animation: move 5s linear infinite;
                    -o-animation: move 5s linear infinite;
                    -ms-animation: move 5s linear infinite;
                }
                @keyframes move {
                    from {
                        height: 0px;
                    }
    
                    to {
                        height: 100%;
                    }
                }
                @-webkit-keyframes move {
                    from {
                        height: 0px;
                    }
    
                    to {
                        height: 200px;
                    }
                }
                @-moz-keyframes move {
                    from {
                        height: 0px;
                    }
    
                    to {
                        height: 200px;
                    }
                }
                @-o-keyframes move {
                    from {
                        height: 0px;
                    }
    
                    to {
                        height: 200px;
                    }
                }
                .qr-code p{
                    margin: 6px;
                    font-family: "Helvetica Neue", Arial, "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft YaHei", sans-serif;;
                    font-size: 17px;
                    color: #fff;
                }
    
            </style>
        </head>
    
        <body>  
            <div class="qr-code">
                <div>
                    <img src="img/qr-code.png">
                    <span class="scanning"></span>
                </div>
                <p>加客服微信 随时随地咨询</p>
            </div>          
        </body>
        </html>

     

  • 相关阅读:
    机器学习【九】数据表达与特征工程
    机器学习【八】数据预处理、降维、特征提取及聚类
    机器学习【七】神经网络
    机器学习【六】支持向量机SVM——专治线性不可分
    机器学习【五】随机森林
    机器学习【四】决策树
    单片机简介 & 点亮LED & 流水灯 & 电路基础
    PHP表单
    机器学习【三】朴素贝叶斯
    PHP 【六】
  • 原文地址:https://www.cnblogs.com/theWayToAce/p/7109611.html
Copyright © 2011-2022 走看看