<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.15.2/css/all.css" rel="stylesheet">
<style>
body{
margin: 0;
padding:0;
height:100vh;
display: flex;
align-items: center;
justify-content: center;
background: #2f3542;
}
.lb a{
font-size:40px;
color:#70a1ff;
width: 100px;
height: 100px;
line-height: 100px;
margin: 0 16px;
display: inline-block;
transition: .5s linear;
position: relative;
text-align: center;
}
.lb a::before,.lb a::after{
content:'';
position: absolute;
box-sizing: border-box;
width: 100px;
height: 100%;
left: 0;
top:0;
transition: .5s linear;
}
.lb a:hover{
transform: scale(.8);
}
.lb a:hover::before{
border-left: solid;
border-right: 4px solid;
/*设定边框属性及动画效果为旋转正负20度*/
transform: skewX(20deg);
}
.lb a:hover::after{
border-top: 4px solid;
border-bottom: 4px solid;
transform: skewY(-20deg);
}
</style>
</head>
<body>
<div class="lb">
<a href="#"><i class="fab fa-qq"></i></a>
<a href="#"><i class="fab fa-weixin"></i></a>
<a href="#"><i class="fab fa-weibo"></i></a>
<a href="#"><i class="fab fa-zhihu"></i></a>
</div>
</body>
</html>
web前端第三方软件图标样式
猜你喜欢
转载自blog.csdn.net/qq_42526440/article/details/113483486
今日推荐
周排行