<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
.a{
width: 100px;
height: 50px;
background-color: red;
float: left;
border-top-left-radius: 25px ;
border-bottom-left-radius: 25px ;
transform: rotate(45deg);
}
.b{
width: 100px;
height: 50px;
background-color: red;
float: left;
border-top-right-radius: 25px ;
border-bottom-right-radius: 25px ;
transform: rotate(-45deg) translate(-45px,-45px);
}
.box{
width: fit-content;
margin: 200px auto 0;
animation: boot 1s linear infinite;
}
@keyframes boot{
0%{
transform: scale(1);
}
100%{
transform: scale(3);
}
}
</style>
</head>
<body>
<div class="box">
<div class="a"></div>
<div class="b"></div>
</div>
</body>
</html>