css实现三维原子运动交错动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现三维原子运动交错动画效果代码

代码标签: css 三维 原子 运动 交错 动画

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

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

<head>
    <meta charset="UTF-8">
  <style>
   body {
	background-color:#202828;
	overflow:hidden
}
#atome {
	perspective:1000px;
	perspective-origin:50% 50%;
	height:100%;
	top:5%;
	position:absolute;
	left:50%;
	margin-left:-100px
}
.atome-wrap {
	height:200px;
	width:200px;
	margin:auto;
	position:absolute;
	transform-style:preserve-3d;
	top:0;
	left:0;
	right:0;
	bottom:0;
	animation:turn 8s infinite;
	animation-timing-function:linear
}
.atome-wrap:after,.atome-wrap:before {
	content:'';
	position:absolute;
	height:8px;
	width:8px;
	border-radius:100%;
	background-color:#fff;
	box-shadow:0 0 10px #000,0 0 15px #64FFF9,0 0 30px #64FFF9;
	top:50%;
	left:50%;
	margin-top:-4px;
	margin-left:-4px
}
.atome-wrap:before {
	transform:rotateX(90deg)
}
.circle {
	height:200px;
	width:200px;
	position:absolute;
	box-shadow:0 0 5px rgba(0,0,0,0.5);
	border-radius:100%;
	border:dashed 1.5px rgba(0,255,255,0.1);
	animation-timing-function:linear
}
.circle:before {
	content:'';
	position:absolute;
	height:4px;
	width:8px;
	border-radius:100%;
	background-color:#fff;
	box-shadow:0 0 10px #C1FFFD,0 0 15px #7CFFFF,0 0 30px #36FFFF,0 0 40px #0FF;
	animation:electrons 3s infinite;
	animation-timing-function:linear
}
.circle:after {
	content:'';
	position:absolute;
	height:8px;
	width:8px;
	border-radius:100%;
	background-color:#fff;
	top:50%;
	left:50%;
	margin-top:-4px;
	margin-left:-4px;
	box-shadow:0 0 10px #000,0 0 15px #64FFF9,0 0 30px #0FF
}
.circle_0 {
	transform:translateZ(0px) rotateY(0deg) rotateX(0deg);
	animation:rotate_0 1.8s infinite;
	animation-timing-function:linear;
	height:300px;
	width:300px;
	top:-50px;
	left:-50px
}
.circle_0:before {
	top:50%;
	left:0;
	margin-left:-3px;
	margin-top:0;
	height:8px;
	width:3px
}
.circle_1 {
	transform:translateZ(0px) rotateY(90deg) rotateX(0deg);
	animation:rotate_1 1.8s infinite;
	animation-timing-function:linear;
	height:300px;
	width:300px;
	top:-50px;
	left:-50px
}
.circle_1:before {
	top:50%;
	right:0;
	margin-right:-2px;
	margin-top:0;
	width:3px;
	height:8px
}
.circle_2 {
	transform:translateZ(0px) rotateY(45deg) rotateX(0deg);
	animation:rotate_2 1.2s infinite;
	animation-timing-function:linear
}
.circle_2:before {
	top:50%;
	right:0;
	margin-right:-3px;
	margin-top:0;
	height:8px;
	width:3px
}
.circle_3 {
	transform:translateZ(0px) rotateY(135deg) rotateX(0deg);
	animation:rotate_3 1.2s infinite;
	animation-timing-function:linear
}
.circle_3:before {
	bottom:50%;
	right:0;
	margin-right:-3px;
	margin-bottom:0;
	height:8px;
	width:3px
}
.circle_4 {
	transform:rotateX(90deg) rotateY(-30deg) translateZ(0px) translateY(0px);
	animation:rotate_4 .5s infinite;
	animation-timing-function:linear;
	height:100px;
	width:100px;
	top:50px;
	left:50px
}
.circle_4:before {
	top:50%;
	left:0;
	margin-left:-3px;
	margin-top:0;
	height:8px;
	width:3px
}
.circle_5 {
	transform:rotateX(90deg) rotateY(45deg) translateZ(0px) translateY(0px);
	animation:rotate_5 .5s infinite;
	animation-timing-function:linear;
	height:100px;
	width:100px;
	top:50px;
	left:50px
}
.circle_5:before {
	top:50%;
	right:0;
	margin-right:-2px;
	margin-top:0;
	width:3px;
	height:8px
}
@keyframes turn {
	0% {
	transform:rotateX(0deg) rot.........完整代码请登录后点击上方下载按钮下载查看

网友评论0