做个笔记,关于css动画制作冒泡泡效果,也可做放孔明灯效果。
@for $i from 0 through 8 {
.g-bubble:nth-child(#{$i}) {
opacity: 0.95;
// border-radius: 100%;
position: absolute;
background: url(https://xz.hanting.site/static/images/kmd.png);
$width: #{random(200) + 80}px;
left: #{(random(400))}px;
bottom: #{random(60)}px;
width: $width;
height: $width;
background-size: 100%;
animation: moveToTop #{random(10) * 0.5s + 3s} ease-in-out infinite;
animation-delay: - #{$i * random(10) * 0.2s + 1s};
}
}
@keyframes moveToTop {
70% {
opacity: 0.05;
}
100% {
opacity: 0.01;
transform: translate(-50%, -400px) scale(0.3);
}
}
sea2025-01-04 10:52
发表在:《心之力》——毛泽东叩拜
g8Yww2UK2024-11-26 11:01
发表在:微信小程序下载mp4视频失败saveVideoToPhotosAlbum :fail invalid video type!已解决!看看呢
凡尘神域2024-11-04 13:35
发表在:炫酷可装杯的艺术签名商务签名设计,看这里!不错
CqbcImLl2024-11-03 22:38
发表在:微信小程序下载mp4视频失败saveVideoToPhotosAlbum :fail invalid video type!已解决!学习下
sea2024-11-02 12:42
发表在:微信小程序下载mp4视频失败saveVideoToPhotosAlbum :fail invalid video type!已解决!123123