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

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

相关内容

热门资讯

是有挂!德普之星辅助工具如何打... 是有挂!德普之星辅助工具如何打开,微信小程序开发,力荐教程(一贯是有挂);微信小程序开发最新软件透视...
第2分钟项目!h5反杀工具,拱... 第2分钟项目!h5反杀工具,拱趴大菠萝自动计算机器人,高科技教程(一直真的有挂)h5反杀工具ai黑科...
是有挂!wpk辅助是真的吗,卡... 是有挂!wpk辅助是真的吗,卡农血拼辅助,攻略教程(其实是有挂)相信很多朋友都在电脑上玩过卡农血拼辅...
两分钟方案!八一字牌脚本,四川... 两分钟方案!八一字牌脚本,四川途游辅助软件,攻略方法(一直是有挂的) 了解更多开挂安装加(13670...
是有挂!wepoker轻量版透... 是有挂!wepoker轻量版透视系统,边锋干瞪眼辅助,必胜教程(果然是有挂);一、边锋干瞪眼辅助有挂...
第4分钟经验!途游四川小程序好... 第4分钟经验!途游四川小程序好运卡,微信牵手跑辅助,专业教程(原来真的是有挂);无需打开直接搜索加薇...
真的有挂!pokemmo脚本,... 真的有挂!pokemmo脚本,免费天天贵阳辅助工具,2026新版教程(一直真的有挂);免费天天贵阳辅...
第4分钟妙计!雀友会广东潮汕b... 第4分钟妙计!雀友会广东潮汕bus,赣牌圈小程序破解版,实用技巧(其实真的是有挂)《详细加薇1367...
确实有挂!werplan外卦神... 确实有挂!werplan外卦神器,情怀七喜游戏辅助,曝光教程(原来确实有挂);超受欢迎的情怀七喜游戏...
第三分钟方针!手游游戏挂机辅助... 第三分钟方针!手游游戏挂机辅助,微信小程序游戏破解器,存在挂教程(一贯确实有挂)【无需打开直接搜索加...