div+css实现透明圆球内圆点动画效果代码

代码语言:html

所属分类:动画

代码描述:div+css实现透明圆球内圆点动画效果代码

代码标签: div css 透明 圆球 圆点 动画

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

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">

<style>
    * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #132a13;
}

.ball {
  position: relative;
  width: 600px;
  height: 600px;
  box-shadow: inset 0 25px 70px rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ball::before {
  content: "";
  position: absolute;
  bottom: -50px;
  width: 100%;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(#0003, #0003, transparent, transparent);
  z-index: -1;
}
.ball:hover::after {
  opacity: 1;
}

.circle {
  position: absolute;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  animation: animate 15s linear infinite, particles 4s ease-in-out infinite;
}
.circle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  background: var(--clr);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--clr), 0 0 60px var(--clr), 40px -70px 0 var(--clr), 40px -70px 20px var(--clr), 70px -70px 0 var(--clr), 70px -70px 20px var(--clr), -70px -150px 0 var(--clr), -70px -150px 2.........完整代码请登录后点击上方下载按钮下载查看

网友评论0