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

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

相关内容

热门资讯

透视ai代打!wepoker辅... 透视ai代打!wepoker辅助器安装包定制(WEPOKER辅助工具)透视脚本视频(竟然是真的有挂)...
透视ai代打!wepoker辅... 透视ai代打!wepoker辅助器安装包,(wepoker破解)其实真的有挂(详细网页版透视方法);...
透视脚本!aapoker怎么设... 透视脚本!aapoker怎么设置提高好牌几率,aapoker怎么拿好牌,大神讲解(好像真的有挂)一、...
透视辅助!wpk辅助器,(Wp... 透视辅助!wpk辅助器,(WpK私人局)免费辅助(好像存在有挂);wpk辅助器辅助器中分为三种模型:...
透视模拟器!wepoker高级... 透视模拟器!wepoker高级辅助,(WePoKer软件)都是是真的有挂(详细插件程序激活码)该软件...
辅助透视"wepok... 辅助透视"wepoker手机插件(底牌透视脚本)wepokerplus透视脚本免费"果然有挂1、进入...
透视科技!wpk刷入池率脚本,... 透视科技!wpk刷入池率脚本,(wPk插件)辅助(真是真的有挂)wpk刷入池率脚本软件透明挂微扑克w...
透视脚本!aapoker透视脚... 透视脚本!aapoker透视脚本,aapoker怎么拿好牌,普及教程(真是存在有挂);1、进入游戏-...
透视总结"wepok... 透视总结"wepoker可以透视码(底牌透视脚本)wepoker智能辅助插件"果然真的有挂;在进入w...
透视黑科技!wepoker免费... 透视黑科技!wepoker免费透视脚本,wepoker挂(透视总是是真的有挂)1、玩家可以在wepo...