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

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

相关内容

热门资讯

这一现象值得深思!wepoke... 这一现象值得深思!wepoker怎么下载游戏,hhpoker俱乐部是干嘛的,原来真的有挂(有挂细节)...
刚刚!智星菠萝透视,拱趴大菠萝... 刚刚!智星菠萝透视,拱趴大菠萝挂,果然是有挂(有挂规律)1)拱趴大菠萝挂辅助插件:进一步探索拱趴大菠...
这一问题亟待解决!wepoke... 这一问题亟待解决!wepoker怎么挂底牌,wpk辅助购买,真是存在有挂(有挂教学)1、wepoke...
备受关注的!哈糖大菠萝辅助器,... 备受关注的!哈糖大菠萝辅助器,德扑圈透视挂,确实是有挂(有挂教程)1、让任何用户在无需哈糖大菠萝辅助...
围绕透视问题!hhpoker可... 围绕透视问题!hhpoker可以控制吗,约局吧开挂,竟然存在有挂(有挂分享)所有人都在同一条线上,像...
插件辅助挂!pokernow辅... 插件辅助挂!pokernow辅助控制,wepoker好友助力码,果然是真的有挂(证实有挂)1)wep...
黑科技辅助挂!uupoker有... 黑科技辅助挂!uupoker有透视吗,wepokerplus外挂,真是是真的有挂(有挂细节)1、点击...
网友热议!德州之星扫描器,we... 网友热议!德州之星扫描器,wepoker俱乐部辅助,都是是真的有挂(揭秘有挂)1.wepoker俱乐...
黑科技辅助挂!红龙poker有... 黑科技辅助挂!红龙poker有辅助吗,wepoker破解工具,好像确实有挂(有挂辅助)1、在红龙po...
2026版攻略!aapoker... 2026版攻略!aapoker发牌逻辑,德普之星私人局辅助器,一贯真的是有挂(真的有挂)1、完成德普...