太阳系星球和卫星运行模拟动画全
代码语言:html
所属分类:动画
代码描述:太阳系星球和卫星运行模拟动画全
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
html, body {
height: 100%;
overflow: hidden;
}
body {
font-size: 5.5vmin;
}
.scene {
height: 100%;
background: #10151a;
-webkit-perspective: 350px;
perspective: 350px;
}
.scene .system {
position: absolute;
width: 100%;
height: 100%;
font-size: .25em;
border-radius: 100%;
}
.scene .orbit {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
border: 1px solid rgba(127, 255, 255, 0.1);
box-shadow: 0 0 75em rgba(0, 255, 255, 0.05);
border-radius: 100%;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.scene .orbit:nth-child(0) {
width: 0em;
height: 0em;
-webkit-animation: orbit 0s linear infinite;
animation: orbit 0s linear infinite;
}
.scene .orbit:nth-child(0) .sphere {
-webkit-animation: counter-rotation 0s linear infinite;
animation: counter-rotation 0s linear infinite;
}
.scene .orbit:nth-child(1) {
width: 35em;
height: 35em;
-webkit-animation: orbit 2.4s linear infinite;
animation: orbit 2.4s linear infinite;
}
.scene .orbit:nth-child(1) .sphere {
-webkit-animation: counter-rotation 2.4s linear infinite;
animation: counter-rotation 2.4s linear infinite;
}
.scene .orbit:nth-child(2) {
width: 70em;
height: 70em;
-webkit-animation: orbit 9.6s linear infinite;
animation: orbit 9.6s linear infinite;
}
.scene .orbit:nth-child(2) .sphere {
-webkit-animation: counter-rotation 9.6s linear infinite;
animation: counter-rotation 9.6s linear infinite;
}
.scene .orbit:nth-child(3) {
width: 105em;
height: 105em;
-webkit-animation: orbit 21.6s linear infinite;
animation: orbit 21.6s linear infinite;
}
.scene .orbit:nth-child(3) .sphere {
-webkit-animation: counter-rotation 21.6s linear infinite;
animation: counter-rotation 21.6s linear infinite;
}
.scene .orbit:nth-child(4) {
width: 140em;
height: 140em;
-webkit-animation: orbit 38.4s linear infinite;
animation: orbit 38.4s linear infinite;
}
.scene .orbit:nth-child(4) .sphere {
-webkit-animation: counter-rotation 38.4s linear infinite;
animation: counter-rotation 38.4s linear infinite;
}
.scene .orbit:nth-child(5) {
width: 175em;
height: 175em;
-webkit-animation: orbit 60s linear infinite;
animation: orbit 60s linear infinite;
}
.scene .orbit:nth-child(5) .sphere {
-webkit-animation: counter-rotation 60s linear infinite;
animation: counter-rotation 60s linear infinite;
}
.scene .orbit:nth-child(6) {
width: 210em;
height: 210em;
-webkit-animation: orbit 86.4s linear infinite;
animation: orbit 86.4s linear infinite;
}
.scene .orbit:nth-child(6) .sphere {
-webkit-animation: counter-rotation 86.4s linear infinite;
animation: counter-rotation 86.4s linear infinite;
}
.scene .orbit:nth.........完整代码请登录后点击上方下载按钮下载查看
网友评论0