zoukankan      html  css  js  c++  java
  • css-鼠标经过图片效果

    1.边框线

                                    <a href="" class="dttw_tp">
                                        <div class="t-top"></div>
                                        <div class="t-bottom"></div>
                                        <img src="images/n1_xw1.png" alt="">
                                    </a>
     


    /* 边框动画 */

    a.dttw_tp {
        position: relative;
    }

    .t-top::before {
        position: absolute;
        content: "";
         0px;
        right: 0px;
        top: 0px;
        height: 2px;
        background-color: var(--main-color);
        -webkit-transition: all .5s ease;
        -moz-transition: all .5s ease;
        -ms-transition: all .5s ease;
        -o-transition: all .5s ease;
        transition: all .5s ease;
    }


    /* 替换 */

    a.dttw_tp:hover .t-top::before {
         100%;
    }

    .t-top::after {
        position: absolute;
        content: "";
        right: 0px;
        top: 0px;
         2px;
        height: 0px;
        background-color: var(--main-color);
        -webkit-transition: all .5s ease;
        -moz-transition: all .5s ease;
        -ms-transition: all .5s ease;
        -o-transition: all .5s ease;
        transition: all .5s ease;
    }


    /* 替换 */

    a.dttw_tp:hover .t-top::after {
        height: 100%;
    }

    .t-bottom::before {
        position: absolute;
        content: "";
         0px;
        left: 0px;
        bottom: 0px;
        height: 2px;
        background-color: var(--main-color);
        -webkit-transition: all .5s ease;
        -moz-transition: all .5s ease;
        -ms-transition: all .5s ease;
        -o-transition: all .5s ease;
        transition: all .5s ease;
    }


    /* 替换 */
  • 相关阅读:
    【转】Python爬虫(5)_性能相关
    【转】Python爬虫(4)_selenium模块
    【转】Python爬虫(3)_Beautifulsoup模块
    【转】Python爬虫_示例2
    【转】Python爬虫_示例
    linux开机自启动tomcat
    Linux下Tomcat启动,停止命令
    Linux下tomcat启动Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of
    centos7开启关闭80端口
    centos安装JDK
  • 原文地址:https://www.cnblogs.com/111wdh/p/14205940.html
Copyright © 2011-2022 走看看