css实现雾球旋转动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现雾球旋转动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
box-sizing: border-box;
}
html, body {
width: 100%;
min-height: 100%;
font-size: 16px;
line-height: 1.4rem;
background-color: #181818;
}
.sphere {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
width: 45vmin;
height: 45vmin;
animation: spinSphere 20s infinite linear;
transform-style: preserve-3d;
}
[class^="ring"] {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
width: 45vmin;
height: 45vmin;
border-radius: 50%;
overflow: hidden;
}
[class$="1"] {
transform: rotateY(2deg) rotateX(2deg) rotateZ(3deg);
box-shadow: 0 0 3px rgba(253, 169, 0, 0.1), inset 0 0 3px rgba(253, 169, 0, 0.1);
}
[class$="2"] {
transform: rotateY(4deg) rotateX(4deg) rotateZ(6deg);
box-shadow: 0 0 5px rgba(251, 169, 45, 0.1), inset 0 0 5px rgba(251, 169, 45, 0.1);
}
[class$="3"] {
transform: rotateY(6deg) rotateX(6deg) rotateZ(9deg);
box-shadow: 0 0 7px rgba(249, 168, 45, 0.1), inset 0 0 7px rgba(249, 168, 45, 0.1);
}
[class$="4"] {
transform: rotateY(8deg) rotateX(8deg) rotateZ(12deg);
box-shadow: 0 0 9px rgba(247, 168, 45, 0.1), inset 0 0 9px rgba(247, 168, 45, 0.1);
}
[class$="5"] {
transform: rotateY(10deg) rotateX(10deg) rotateZ(15deg);
box-shadow: 0 0 11px rgba(245, 167, 90, 0.1.........完整代码请登录后点击上方下载按钮下载查看
网友评论0