圆形头像鼠标浮上去的样式

鼠标经过头像的动画:代码如下
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        .tj_box{
            display: inline-block;
            float: left;
            width: 281px;
            height: 178px;
            position: relative;

        }
        .our-team{

            width: 130px;
            height: 130px;
            overflow: hidden;
            margin-left: 48px;
            margin-top: 20px;
            position: relative;



        }
        .our-team .pic{
            display: inline-block;
            width: 130px;
            height: 130px;
            margin-bottom: 50px;
            z-index: 1;
        }
        .our-team:hover .pic:before{ height: 100%; }
        .our-team .pic:after{
            content: "";
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: #ee4266;
            position: absolute;
            top: 0;
            left: 0;
            z-index: -1;
        }
        .our-team .pic img{
            width: 100%;
            height: auto;
            border-radius: 50%;
            transform: scale(1);
            transition: all 0.9s ease 0s;
        }
        .our-team:hover .pic img{
            box-shadow: 0 0 0 14px #f7f5ec;
            transform: scale(0.7);
        }
        .our-team .team-content{ margin-bottom: 30px; }
        .our-team .title{
            font-size: 22px;
            font-weight: 700;
            color: #4e5052;
            letter-spacing: 1px;
            text-transform: capitalize;
            margin-bottom: 5px;
        }
        .our-team .post{
            display: block;
            font-size: 15px;
            color: #4e5052;
            text-transform:capitalize;
        }
        .our-team .social{
            width: 100%;
            padding: 0;
            margin: 0;
            background: #eb1768;
            position: absolute;
            bottom: -100px;
            left: 0;
            transition: all 0.5s ease 0s;
        }
        .our-team:hover .social{ bottom: 0; }
        .our-team .social li{ display: inline-block; }
        .our-team .social li a{
            display: block;
            padding: 10px;
            font-size: 17px;
            color: #fff;
            transition: all 0.3s ease 0s;
        }
        .our-team .social li a:hover{
            color: #eb1768;
            background: #f7f5ec;
        }

    </style>
</head>
<body>
<div class=" tj_div_img_box our-team">
    <div class="tj_div_img pic">
        <img class="tj_img" src="http://q.qlogo.cn/qqapp/101390980/F6222899C4F72B3ECEB3316CBFD83274/100">
    </div>

</div>
</body>
</html>

效果图如下:



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值