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;
    }


    /* 替换 */
  • 相关阅读:
    easyui Combobox用法
    Jquery EasyUI treegrid的使用(asp.net后台)
    异步加载Echars +ASP.Net后台(柱状图)
    jQuery Validate表单验证帐号是否存在
    EasyUI Datebox 日期验证 开始日期小于结束时间
    gdb调试常用命令
    简答哈希实现 (nyoj 138 找球号2)
    03_汇编语言(n个数找最大值)
    02_汇编语言(子程序设计01_基本输入输出函数模板)
    01_汇编语言(基本格式_模板)
  • 原文地址:https://www.cnblogs.com/111wdh/p/14205940.html
Copyright © 2011-2022 走看看