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;     }   }

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

相关内容

热门资讯

玩家必备科普!(pokerrr... 玩家必备科普!(pokerrrr2俱乐部)外挂透明挂ai代打辅助助手!(德扑之星)揭秘教程(2021...
科普分享!wepoke管理员,... 科普分享!wepoke管理员,wepkoe黑科技设备,揭秘攻略(了解有挂)-哔哩哔哩;wepkoe黑...
5分钟透视!德普之星透视软件免... 5分钟透视!德普之星透视软件免费入口官网,wepoker透视破解版(透视)技巧教程(讲解有挂)进入游...
六分钟了解!(wpk辅助)外挂... 六分钟了解!(wpk辅助)外挂软件透明挂辅助插件!(wpk辅助器是真的)解密教程(2026已更新)(...
黑科技ai!wepoke ap... 黑科技ai!wepoke app,aapoker辅助软件,黑科技教程(有挂秘诀)-哔哩哔哩;一、aa...
六分钟指导!hhpoker怎么... 六分钟指导!hhpoker怎么开透视,wpk透视脚本链接(透视)我来教教你(有挂神器)1、完成hhp...
透视讲解!(aapoker后台... 透视讲解!(aapoker后台)外挂辅助黑科技!(wpk智能ai)新2025版(2026已更新)(哔...
关于!wepoker系统规律,... 关于!wepoker系统规律,智星德州菠萝辅助器推荐,力荐教程(讲解有挂)-哔哩哔哩;AI辅助机器人...
5分钟辅助!hhpoker万能... 5分钟辅助!hhpoker万能辅助器,hhpoker辅助软件(透视)揭秘教程(有挂规律)1、下载好h...
透视系统!(轰趴十三水)外挂辅... 透视系统!(轰趴十三水)外挂辅助软件!(wpk发牌算法)介绍教程(2024已更新)(哔哩哔哩);轰趴...