纯css实现环形动画效果
代码语言:html
所属分类:动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
background: #212121;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.circles {
position: relative;
width: 400px;
height: 400px;
transform-style: preserve-3d;
transform: perspective(500px) rotateX(60deg);
}
.circles > .circle {
position: absolute;
border: 5px solid #c299fc;
border-radius: 50%;
box-shadow: 0 5px 0 #8807f9, inset 0 5px 15px 5px #000;
animation: pull 3s ease-in-out backwards infinite alternate;
}
.circles > .circle:nth-child(1) {
top: 10px;
bottom: 10px;
left: 10px;
right: 10px;
animation-delay: 0.05s;
}
.circles > .circle:nth-child(2) {
top: 20px;
bottom: 20px;
left: 20px;
right: 20px;.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0