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

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

相关内容

热门资讯

透视辅助(线上德州)德州之星辅... 透视辅助(线上德州)德州之星辅助(透视)切实真的有挂(详细辅助攻略教程);1、每一步都需要思考,不同...
透视游戏(WePoke)透明挂... 透视游戏(WePoke)透明挂辅助工具(wepoke有辅助挂)往昔真的有挂(详细透视曝光教程);最新...
aapoker外挂!Aapok... aapoker外挂!Aapoker app,(AAPOkER)一贯有挂(详细辅助细节方法)该软件可以...
透视脚本(WEpoke)透视辅... 透视脚本(WEpoke)透视辅助挂(wepoke辅助有挂)从前是真的有挂(详细透视透视教程);小薇(...
透视工具(wpk德州)德州之星... 透视工具(wpk德州)德州之星插件(透视)都是有挂(详细辅助揭秘教程)1、德州之星插件系统规律教程、...
aapoker透视辅助!aap... aapoker透视辅助!aapoker脚本透明,(aapokEr)竟然有挂(详细辅助必备教程)1、打...
透视总结(德州wpk)德州AI... 透视总结(德州wpk)德州AI智能辅助机器人(透视)好像真的有挂(详细辅助解说技巧)1)德州AI智能...
透视脚本(wEpoke)外挂透... 透视脚本(wEpoke)外挂透明挂辅助软件(wepoke模拟器)总是是真的有挂(详细透视科技教程)科...
aapoker辅助!德州aa扑... aapoker辅助!德州aa扑克透明挂,(aaPoker)本来存在有挂(详细辅助揭秘教程);所有人都...
透视黑科技(德扑之星)德州之星... 透视黑科技(德扑之星)德州之星有辅助挂(透视)竟然存在有挂(详细辅助科技教程)1、该软件可以轻松地帮...