css模拟直播间小logo
直接上代码
<!--
* @Author: yyy
* @Date: 2021-09-14 10:09:13
* @LastEditTime: 2021-09-14 10:35:13
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \lyzdfrontendd:\yjh\interesting\index.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="icon">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
</body>
<style>
.icon {
padding: 3% 20px 0;
box-sizing: border-box;
display: flex;
align-items: flex-end;
justify-content: space-around;
margin: 50px auto;
width: 200px;
height: 200px;
background-color: pink;
border-radius: 50%;
}
.item {
border-radius: 8px 8px 0 0;
width: 13%;
margin-bottom: 30%;
background-color: #fff;
display: inline-block;
animation: move 1s linear infinite;
}
@keyframes move {
0%,
100% {
height: 40px;
}
50% {
height: 55%;
}
}
.icon .item:nth-child(2) {
animation-delay: 0.3s;
}
.icon .item:nth-child(3) {
animation-delay: 0.6s;
}
</style>
</html>