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

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

相关内容

热门资讯

透视实锤!wpk辅助器(透视)... 透视实锤!wpk辅助器(透视)外挂透明挂辅助app(总是存在有挂);大神普及一款德州ai内幕,确定了...
透视模拟器!菠萝德普辅助器免费... 透视模拟器!菠萝德普辅助器免费版在哪里,蜀山四川破解版安卓版,wepoke教程(有挂技巧)小薇(透视...
透视辅助!wepoker透视(... 透视辅助!wepoker透视(透视)透明教程(其实是真的有挂);1、超多福利:超高返利,海量正版游戏...
透视神器!aapoker辅助插... 1、透视神器!aapoker辅助插件工具下载(透视)外挂透明挂辅助脚本(素来有挂)。2、aapoke...
透视科技!wejoker黑侠辅... 透视科技!wejoker黑侠辅助器,皇豪互众控制系统下载,详细教程(有挂黑科技)1、完成皇豪互众控制...
透视黑科技!德朴之星脚本(透视... 透视黑科技!德朴之星脚本(透视)大神讲解(果然存在有挂)1、玩家可以在德朴之星脚本软件透明挂俱乐部对...
透视最新!wpk辅助器安装(透... 透视最新!wpk辅助器安装(透视)外挂透明挂辅助机制(确实有挂)1、玩家可以在wpk辅助器软件透明挂...
透视能赢!aapoker怎么开... 透视能赢!aapoker怎么开辅助器,南宁老友麻将免费辅助器,2025版教程(有挂解说)1、很好的工...
透视免费!hhpoker辅助软... 透视免费!hhpoker辅助软件(透视)解密教程(果然存在有挂)该软件可以轻松地帮助玩家将hhpok...
透视软件!hhpoker怎么开... 透视软件!hhpoker怎么开透视(透视)外挂透明挂辅助挂(从前存在有挂)这是由厦门游乐互动科技有限...