zoukankan      html  css  js  c++  java
  • css 最简单的淡出淡出

    实现的效果,鼠标放上去之后,图片放大。父级div设置宽度高度,并添加 overflow: hidden;

    img里面添加 transition: transform 1s;  

    .imges{
           100%;
          height: 150px;
          overflow: hidden;
          img{
           100%;
          height: 100%;
          transition: transform 1s;  
          }
        }
     
    立即学习那个按钮隐藏
    .studys { 
        color: #ffffff;
        position: absolute;
        bottom: 52%;
        left: 30%;
        border-radius: 5px;
        font-size: 18px;
        padding: 8px 40px;
        background-color: #188eee;
        transition: opacity 1s;
       opacity: 0;
      }
     
    鼠标放上去时图片放大,然后透明度由0变成1
    .imges>img{
              transform: scale(1.1)
          }
    .studys {
            opacity: 1; 
            cursor: pointer;
          }
     
     
  • 相关阅读:
    WIKI 配置参数
    SSH远程错误或者登录解决方法
    Mysql my.conf配置说明
    Mysql 常用命令
    Nginx 开机启动
    排序的总结
    strcpy函数实现(转载)
    函数指针传递
    地址的强制转换
    结构体内存对齐
  • 原文地址:https://www.cnblogs.com/uniapp/p/13203831.html
Copyright © 2011-2022 走看看