HTML音乐爱心3D旋转相册完整源码

最终效果运行截图
HTML音乐爱心3D旋转相册完整源码_第1张图片
爱心效果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: 

你可能感兴趣的:(html,3d,css)