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:absolut.........完整代码请登录后点击上方下载按钮下载查看

网友评论0