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

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

相关内容

热门资讯

第8分钟了解“闲来辅助最新版下... 第8分钟了解“闲来辅助最新版下载”普及开挂辅助插件-其实有挂1、许多玩家不知道闲来辅助最新版下载辅助...
8分钟辅助!德州局hhpoke... 8分钟辅助!德州局hhpoker,金州水鱼脚本(新2026版透视开挂辅助工具);1、超多福利:超高返...
第8次性普及!超级三加一视频“... 第8次性普及!超级三加一视频“解迷开挂辅助脚本”所有人都在同一条线上,像星星一样排成一排,每一代超级...
科技分享!wepoker脚本“... 科技分享!wepoker脚本“安装开挂透视挂辅助安装”是一款可以让一直输的玩家,快速成为一个“必胜”...
第四分钟了解“天天微友有辅助”... 第四分钟了解“天天微友有辅助”必备开挂辅助神器-本来存在有挂1)天天微友有辅助辅助挂:进一步探索天天...
第8分钟透明挂!hhpoker... 第8分钟透明挂!hhpoker辅助器视频,微信财神十三脚本(系统透视开挂辅助方法)微信财神十三脚本软...
第十次性理解!微友辅助神器下载... 第十次性理解!微友辅助神器下载“了解开挂辅助工具”1)微友辅助神器下载辅助挂:进一步探索微友辅助神器...
一起来讨论!aapoker破解... 一起来讨论!aapoker破解侠是真的“玩家开挂透视挂辅助安装”;详细aapoker破解侠是真的攻略...
七分钟了解“福麻圈跑得快辅助功... 七分钟了解“福麻圈跑得快辅助功能”分享开挂辅助神器-切实真的有挂1、下载好福麻圈跑得快辅助功能辅助软...
第3分钟科普!newpoker... 第3分钟科普!newpoker脚本,哈灵脚本辅助器(解密透视开挂辅助技巧)1、很好的工具软件,可以解...