zoukankan      html  css  js  c++  java
  • 前端样式搭配套餐opacity: 0; visibility: hidden; transform: scale(0); transition: all .6s;

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=\, initial-scale=1.0">
        <title>Document</title>
        <style>
     .productBox li{position: relative;  300px; height: 300px;}
    .productBox li .mask{ 100%; height: 100%; background: rgba(255,0,0,.9);
     position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; transform: scale(0); transition: all .6s;}
     .productBox li .pic:hover .mask{opacity:2; visibility: visible; transform: scale(1);}
    .name{color: #fff; font-size: 15px; margin-top: 14px; max-height: 189px; overflow: hidden;}
        </style>
    </head>
    <body>
        <div class="productBox">
            <ul class="clearfix">
                <li class="wow fadeInUp">
                    <div class="item">
                        <div class="pic">
                            <a href="">
                                <img src="./imgs/dg10.jpg" alt="" style=" 300px; height: 300px;">
                                <div class="mask">
                                    <div class="line"></div>
                                    <div class="name">
                                        "hfsdfghs"
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </body>
    </html>
  • 相关阅读:
    Visual Studio的调试技巧
    释放linux的buff/cache
    Markdown画各种图表
    通过 SSH 转发TCP连接数据
    Linux之间用SSH传输文件 一行命令实现
    C# 使用OpenCV在一张图片里寻找人脸
    C# AOP 面向切面编程之 调用拦截
    ES5中新增的Array方法详细说明
    使用json数据动态创建表格2(多次绘制第一次简化 var tr=tbody.insertRow();)
    动态创建表格1
  • 原文地址:https://www.cnblogs.com/lvqiupingboke-2019/p/12921762.html
Copyright © 2011-2022 走看看