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辅助器安装包定制(透视)永久脚本辅助挂(详细辅助必备教程)1、用户打开应用后...
第八分钟了解!微乐小程游戏破解... 第八分钟了解!微乐小程游戏破解器下载,广东雀神智能插件安装包(其实有挂)微乐小程游戏破解器下载辅助器...
透视有挂"wepok... 透视有挂"wepoker开辅助能查到吗"详细辅助软件教程(总是是真的有挂);暗藏猫腻,小编详细说明w...
透视透视!pokemmo辅助工... 透视透视!pokemmo辅助工具(透视)永久脚本辅助器(详细辅助必胜教程);1、pokemmo辅助工...
两分钟了解!微信西楚辅助,陕麻... 两分钟了解!微信西楚辅助,陕麻圈辅助开挂软件(果然存在有挂)1、让任何用户在无需陕麻圈辅助开挂软件A...
透视代打"wepok... 透视代打"wepoker可以免费玩吗"详细辅助安装教程(竟然真的是有挂)1、wepoker可以免费玩...
八分钟了解!财神十三章外挂真的... 八分钟了解!财神十三章外挂真的假的,九神大厅辅助(原来是有挂)1.财神十三章外挂真的假的 ai辅助创...
透视线上!哈糖大菠萝有挂吗5个... 透视线上!哈糖大菠萝有挂吗5个常用方法(透视)永久脚本辅助方法(详细辅助细节揭秘);哈糖大菠萝有挂吗...
透视透视"newpo... 透视透视"newpoker脚本"详细辅助必赢方法(其实真的有挂)1)newpoker脚本辅助挂:进一...
5分钟了解!潮汕激k脚本,新5... 5分钟了解!潮汕激k脚本,新518互游辅助(都是真的有挂)暗藏猫腻,小编详细说明新518互游辅助原来...