• 头像加光晕 it


    之前

    before

    之后

    after

    <!DOCTYPE html>
    <html>
    
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>template</title>
        <style>
            .container {
                 280px;
                height: 280px;
                position: relative;
                z-index: 2;
                border-radius: 50%;
                overflow: hidden;
                padding: 0;
                backface-visibility: hidden;
            }
    
            .container span {
                border-radius: 50%;
                backface-visibility: hidden;
            }
    
            img {
                object-fit: cover;
                position: absolute;
                z-index: -2;
                 100%;
                height: 100%;
                filter: grayscale(100%);
                transition: transform 0.4s ease-in-out;
                opacity: 0.8;
            }
    
            span::after {
                content: '';
                position: absolute;
                left: 0;
                top: 0;
                 100%;
                height: 100%;
                background: linear-gradient(269.16deg, #FFE580 -15.83%, #FF7571 -4.97%, #FF7270 15.69%, #EA5DAD 32.43%, #C2A0FD 50.09%, #9867F0 67.47%, #3BF0E4 84.13%, #33CE43 105.13%, #B2F4B6 123.24%);
                opacity: 0;
                transition: opacity 0.4s ease-in-out;
                mix-blend-mode: multiply;
            }
    
            .container span:hover span::after {
                opacity: 0.8;
            }
        </style>
    </head>
    
    <body>
    
        <div class="container">
            <span>
                <!--<img src="https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2320355753,3726803023&fm=26&gp=0.jpg" alt="pineapple"> -->
                <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1605592221436&di=7fce9c4c37c98a2e85b82dbf43e1d1d5&imgtype=0&src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fimages%2F20181223%2F237116490f7e4b3390870f295cd15e03.jpeg"
                    alt="tlp" />
                <span>
        </div>
    
    </body>
    
    </html>
    
  • 相关阅读:
    解析时间parse time
    php一些高级函数方法
    PHP定界符<<<EOF
    linux crontab(定时任务)
    svn提交按钮灰选
    centos官网下载地址
    centos7 yum安装LAMP
    saprfc
    RSA加解密工具类RSAUtils.java,实现公钥加密私钥解密和私钥解密公钥解密
    接入HTTPS协议的CAS登录配置
  • 原文地址:https://www.cnblogs.com/pupil2021/p/13993664.html
Copyright © 2020-2023  润新知