最終效果運作截圖

愛心效果CSS代碼
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
width: 100%;
height: 100vh;
overflow: hidden;
background: #fb7373;
position: relative;
}
.heart-box{
width: 100%;
height: 100vh;
overflow: hidden;
position: fixed;
left: 0;
top: 0;
display: flex;
flex-wrap: wrap;
}
.heart{
flex-shrink: 0;
width: 20px;
height: 20px;
background-color: red;
transform: translateY(100vh) rotate(45deg);
position: relative;
margin: 15px;
animation: move linear 2s infinite;
animation-duration:calc(var(--i) * 0.3s);
}
.heart::before{
content: "";
display: block;
width: 100%;
height: 100%;
background-color: red;
border-radius: 50%;
position: absolute;
left: -50%;
}
.heart::after{
content: