div+css实现发光圆球线圈纹理动画效果代码

代码语言:html

所属分类:动画

代码描述:div+css实现发光圆球线圈纹理动画效果代码

代码标签: div css 发光 圆球 线圈 纹理 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
  
<style>
body {
  margin: 0;
  background: radial-gradient(ellipse at center, #000 0%, #111 50%);
  overflow: hidden;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.saturn {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at 30% 30%, #f5c973, #d88c2b);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 20px rgba(255, 255, 200, 0.2);
}

.ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin infinite linear;
  z-index: 1;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.ring:nth-child(2)  { width: 120px; height: 40px;  animation-duration: 7s; }
.ring:nth-child(3)  { width: 130px; height: 44px;  animation-duration: 11s; }
.ring:nth-child(4)  { width: 140px; height: 48px;  animation-duration: 13s; }
.ring:nth-child(5)  { width: 150px; height: 52px;  animation-duration: 17s; }
.ring:nth-child(6)  { width: 160px; height: 56px;  animation-duration: 19s; }
.ring:nth-child(7)  { width: 170px; height: 60px;  animation-duration: 23s; }
.ri.........完整代码请登录后点击上方下载按钮下载查看

网友评论0