• css 雷达扫描图


    html 代码

    1. html>
    2. <html lang="en">
    3. <head>
    4. <meta charset="UTF-8">
    5. <title>css 雷达扫描title>
    6. <style>
    7. * {
    8. margin: 0;
    9. padding: 0;
    10. }
    11. body {
    12. background: #000000;
    13. height: 100vh;
    14. display: flex;
    15. align-items: center;
    16. overflow: hidden;
    17. }
    18. .radar {
    19. left: calc(50% - 250px);
    20. width: 500px;
    21. height: 500px;
    22. overflow: hidden;
    23. background: repeating-radial-gradient(transparent 0, transparent 27px, #43769e 27px, #43769e 30px),
    24. linear-gradient(90deg, transparent 49.75%, #43768e 49.75%, #43769e 50.25%, transparent 50.25%),
    25. linear-gradient(transparent 49.75%, #43768e 49.75%, #43769e 50.25%, transparent 50.25%);
    26. border-radius: 50%;
    27. position: absolute;
    28. }
    29. .radar::before {
    30. content: '';
    31. position: absolute;
    32. width: 250px;
    33. height: 250px;
    34. top: 0;
    35. right: 50%;
    36. background: linear-gradient(45deg, rgba(0, 0, 0, 0) 50%, rgba(107, 183, 208, 1) 100%);
    37. border-radius: 100% 0 0 0;
    38. }
    39. @keyframes scanning {
    40. to {
    41. transform: rotate(360deg);
    42. }
    43. }
    44. .radar::before {
    45. animation: scanning 5s linear infinite;
    46. transform-origin: right bottom;
    47. }
    48. .radar::after {
    49. content: '';
    50. width: 10px;
    51. height: 10px;
    52. opacity: 0.5;
    53. position: absolute;
    54. left: 50%;
    55. top: 50%;
    56. background: rgba(107, 183, 208, 1);
    57. border-radius: 50%;
    58. transform: translate(-50%, -50%);
    59. animation: scale 5s ease-in infinite;
    60. }
    61. @keyframes scale {
    62. 60%, 100% {
    63. width: 800px;
    64. height: 800px;
    65. opacity: 0;
    66. }
    67. }
    68. .avatar {
    69. position: absolute;
    70. left: 50%;
    71. top: 50%;
    72. transform: translate(-50%, -50%);
    73. width: 70px;
    74. height: 70px;
    75. border-radius: 50%;
    76. border: 2px solid #ffffff;
    77. z-index: 666;
    78. }
    79. .girl {
    80. position: absolute;
    81. left: calc(50% + var(--l));
    82. top: calc(50% + var(--t));
    83. transform: translate(-50%, -50%) scale(var(--i));
    84. width: 50px;
    85. height: 50px;
    86. border-radius: 50%;
    87. object-fit: cover;
    88. border: 2px solid #ff2972;
    89. transform-origin: center;
    90. z-index: 999;
    91. animation: upDown 5s infinite linear;
    92. animation-delay: calc(var(--d) * 5s);
    93. }
    94. @keyframes upDown {
    95. 20% {
    96. transform: translate(-50%, -50%) scale(calc(var(--i) * 1.4));
    97. box-shadow: 0 0 10px #ff2972, 0 0 30px #ff2972, 0 0 50px #ff2972;
    98. }
    99. 50%, 100% {
    100. transform: translate(-50%, -50%) scale(var(--i));
    101. box-shadow: none;
    102. }
    103. }
    104. style>
    105. head>
    106. <body>
    107. <div class="radar">
    108. <img src="https://img0.baidu.com/it/u=1812506584,4117485459&fm=253&fmt=auto&app=138&f=JPEG?w=285&h=285" alt=""
    109. class="avatar">
    110. <img src="https://img2.baidu.com/it/u=3546753962,2515344656&fm=253&fmt=auto&app=138&f=JPEG?w=505&h=500" alt=""
    111. class="girl" style="--i:0.5;--l:50px;--t:130px;--d:0.05;">
    112. <img src="https://img0.baidu.com/it/u=2237881411,1442959134&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500" alt=""
    113. class="girl" style="--i:0.6;--l:130px;--t:50px;--d:0.28">
    114. <img src="https://img2.baidu.com/it/u=3959851551,53095557&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500" alt=""
    115. class="girl" style="--i:0.9;--l:50px;--t:50px;--d:0.36">
    116. <img src="https://img1.baidu.com/it/u=3519458463,1887460190&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500" alt=""
    117. class="girl" style="--i:0.7;--l:-50px;--t:90px;--d:0.55">
    118. <img src="https://img2.baidu.com/it/u=1893304700,1248298429&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500" alt=""
    119. class="girl" style="--i:0.7;--l:-80px;--t:-50px;--d:0.80">
    120. div>
    121. body>
    122. html>

  • 相关阅读:
    接雨水问题
    C++单例的安全实现,double-check(双重检查锁定)的安全实现方法
    Android MediaCodec message机制分析
    leetcode链表系列(环形链表篇)
    微服务系统面经之三: 以秒杀系统为例-多级缓存及其更新机制
    Code Llama: Open Foundation Models for Code
    ImageKnife组件,让小白也能轻松搞定图片开发
    云上 Lakehouse 基础架构
    Node_exporter主机探针部署
    vscode软件上安装 Fitten Code插件及使用
  • 原文地址:https://blog.csdn.net/qq_35350009/article/details/134007131