CSS雷达光波效果(前端雷达光波效果)
创始人
2024-11-15 20:37:28
0

前言

CSS雷达光波效果是一种视觉动画效果,常用于模仿雷达扫描或检测的视觉反馈。这种效果通常涉及到动态的圆形或弧形图案,它们从一个中心点向外扩散,类似于水面上的涟漪或雷达扫描线。以下是创建CSS雷达光波效果的一些关键技术和步骤,这里提供两种效果 ,简单记录一下


一. First

1. HTML 结构

2. CSS 内容 

  .radar_container {     margin: auto;     position: relative;     width: 200px;     height: 200px;     // background-color: #000;     border-radius: 50%;     overflow: hidden;     cursor: pointer;     display: flex;     align-items: center;     justify-content: center;   }    .radar_wave {     position: absolute;     width: 20px;     height: 20px;     border: 1px solid #00ff00;     border-radius: 50%;     transform: scale(0); // 初始状态改为从中间开始     box-shadow: inset 0 0 5px 1px #00ff00; // 添加阴影     animation: radar_wave-animation 3s infinite;   }    .radar_wave:nth-child(1) {     animation-delay: 0s;   }   .radar_wave:nth-child(2) {     animation-delay: 1s;   }   .radar_wave:nth-child(3) {     animation-delay: 2s;   }    @keyframes radar_wave-animation {     0% {       transform: scale(0); // 从中间开始       opacity: 1;     }     100% {       transform: scale(10); // 扩散到原来的10倍大小       opacity: 0;     }   }


二. Second

1. HTML 结构同上,CSS 内容请看以下 

  .radar_container {     margin: auto;     position: relative;     width: 200px;     height: 200px;     // background-color: #000;     border-radius: 50%;     overflow: hidden;     cursor: pointer;   }   .radar_wave {     position: absolute;     top: 50%;     left: 50%;     width: 20px;     height: 20px;     background-color: #8080ff;     border-radius: 50%;     transform: translate(-50%, -50%) scale(1);     animation: radar_wave-animation 3s infinite;   }    .radar_wave:nth-child(1) {     animation-delay: 0s;   }    .radar_wave:nth-child(2) {     animation-delay: 1s;   }    .radar_wave:nth-child(3) {     animation-delay: 2s;   }    @keyframes radar_wave-animation {     0% {       transform: scale(0); // 从中间开始       opacity: 1;     }     100% {       transform: scale(10); // 扩散到原来的10倍大小       opacity: 0;     }   }

感觉有用,就一键三连,感谢(●'◡'●)

相关内容

热门资讯

透视积累!wepoker线上大... 透视积累!wepoker线上大神,wepoker有人用过吗(脚本)透视教程(一贯是有挂)-哔哩哔哩1...
透视科普!wpk透视怎么安装(... 透视科普!wpk透视怎么安装(透视)wpk透视怎么安装,教程妙招(有挂解密)-哔哩哔哩1、下载好wp...
透视举措!wepoker透视底... 透视举措!wepoker透视底牌脚本,wepoker黑侠辅助器正版下载(脚本)解密教程(好像真的有挂...
透视专业!wpk刷入池率脚本(... 透视专业!wpk刷入池率脚本(透视)wpk透视工作室,教程步骤(竟然有挂)-哔哩哔哩1、完成wpk刷...
透视技法!wepoker有透视... 透视技法!wepoker有透视底牌吗,wepoker透视app下载(脚本)科普教程(真是真的是有挂)...
透视辅助!如何下载wpk透视版... 透视辅助!如何下载wpk透视版(透视)wpk透视插件,教程操作(有挂秘诀)-哔哩哔哩1、下载好如何下...
透视机巧!we-poker是什... 透视机巧!we-poker是什么软件,wepoker有机器人吗(脚本)专业教程(原来真的是有挂)-哔...
透视详细!wpk有辅助器吗(透... 透视详细!wpk有辅助器吗(透视)wpk俱乐部怎么透视,教程学习(真的有挂)-哔哩哔哩1)wpk俱乐...
透视秘籍!wepoker有没有... 透视秘籍!wepoker有没有机器人,wepoker破解器(脚本)解谜教程(一直是有挂)-哔哩哔哩1...
透视详细!购买的wpk辅助在哪... 透视详细!购买的wpk辅助在哪里下载(透视)wpk俱乐部怎么透视,教程指引(有挂方式)-哔哩哔哩1、...