zoukankan      html  css  js  c++  java
  • css 实现鼠标滑过流光效果

    来划我啊

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <title></title>
            
            <style type="text/css">
                .button {
                     display: block;
                     position: relative;
                     background:#00B16A;
                     color: #fff;
                     width: 160px;
                     height: 50px;
                     line-height: 50px;
                     text-align: center;
                     font-family: 'Ubuntu', sans-serif;
                     font-size: 15px;
                     font-weight: bold;
                     text-decoration: none;
                     margin: 50px auto 0;
                     border-radius: 2px;
                     overflow: hidden;
                     -webkit-transition: all 0.15s ease-out;
                     transition: all 0.15s ease-out;
                    }   
                    .button:before {
                         content: ' ';
                         position: absolute;
                         background: #fff;
                         width: 25px;
                         height: 50px;
                         top: 0;
                         left: -45px;
                         opacity: 0.3;
                         -webkit-transition: all 0.6s ease-out;
                         transition: all 0.6s ease-out;
                         -webkit-transform: skewX(-25deg);
                                 transform: skewX(-25deg);
                    } 
                    .button:hover {
                         background: #26C281;
                    }
                    .button:hover:before {
                         width: 45px;
                         left: 205px;
                    }
            </style>
            
        </head>
        <body>
            <a class="button" href="#">来划我啊</a>
        </body>
    </html>
  • 相关阅读:
    Java环境搭建
    Java语言的分支
    Java语言概述
    计算机语言
    人机交互
    计算机分类
    计算机的应用领域
    计算机的发展史
    Java8的一些新特性
    python国内三方库下载镜像
  • 原文地址:https://www.cnblogs.com/qq735675958/p/7483046.html
Copyright © 2011-2022 走看看