animation: breathe 2s ease-in-out infinite; // css样式
// 关键帧
@keyframes breathe {
0% {
box-shadow: 0 0 @height8 rgba(41, 241, 250, .3);
}
50% {
box-shadow: 0 0 @height16 rgba(41, 241, 250, .6);
}
100% {
box-shadow: 0 0 @height8 rgba(41, 241, 250, .3);
}
}
css动画实现呼吸灯效果
最新推荐文章于 2024-05-21 21:13:29 发布