css实现三维洞穴催眠戒指动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现三维洞穴催眠戒指动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@import url(https://fonts.googleapis.com/css?family=Open+Sans:700,300);
.frame {
position: absolute;
top: 50%;
left: 50%;
width: 400px;
height: 400px;
margin-top: -200px;
margin-left: -200px;
border-radius: 2px;
box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.3);
overflow: hidden;
background: #27ae60;
color: #fff;
font-family: "Open Sans", Helvetica, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.circle {
position: absolute;
width: 200px;
height: 200px;
top: 100px;
left: 100px;
border-radius: 50%;
border: 2px dotted #fff;
transform-origin: 50% 50%;
}
.circle-1 {
-webkit-animation: circle 10s ease-in-out -0.2s infinite both;
animation: circle 10s ease-in-out -0.2s infinite both;
z-index: 1;
}
.circle-2 {
-webkit-animation: circle 10s ease-in-out -0.4s infinite both;
animation: circle 10s ease-in-out -0.4s infinite both;
z-index: 2;
}
.circle-3 {
-webkit-animation: circle 10s ease-in-out -0.6s infinite both;
animation: circle 10s ease-in-out -0.6s infinite both;
z-index: 3;
}
.circle-4 {
-webkit-animation: circle 10s ease-in-out -0.8s infinite both;
animation: circle 10s ease-in-out -0.8s infinite both;
z-index: 4;
}
.circle-5 {
-webkit-animation: circle 10s ease-in-out -1s infinite both;
animation: circle 10s ease-in-out -1s infinite both;
z-index: 5;
}
.circle-6 {
-webkit-animation: circle 10s ease-in-out -1.2s infinite both;
animation: circle 10s ease-in-out -1.2s infinite both;
z-index: 6;
}
.circle-7 {
-webkit-animation: circle 10s ease-in-out -1.4s infinite both;
animation: circle 10s ease-in-out -1.4s infinite both;
z-index: 7;
}
.circle-8 {
-webkit-animation: circle 10s ease-in-out -1.6s infinite both;
animation: circle 10s ease-in-out -1.6s infinite both;
z-index: 8;
}
.circle-9 {
-webkit-animation: circle 10s ease-in-out -1.8s infinite both;
animation: circle 10s ease-in-out -1.8s infinite both;
z-index: 9;
}
.circle-10 {
-webkit-animation: circle 10s ease-in-out -2s infinite both;
animation: circle 10s ease-in-out -2s infinite both;
z-index: 10;
}
.circle-11 {
-webkit-animation: circle 10s ease-in-out -2.2s infinite both;
animation: circle 10s ease-in-out -2.2s infinite both;
z-index: 11;
}
.circle-12 {
-webkit-animation: circle 10s ease-in-out -2.4s infinite both;
animation: circle 10s ease-in-out -2.4s infinite both;
z-index: 12;
}
.circle-13 {
-webkit-animation: circle 10s ease-in-out -2.6s infinite both;
animation: circle 10s ease-in-out -2.6s infinite both;
z-index: 13;
}
.circle-14 {
-webkit-animation: circle 10s ease-in-out -2.8s infinite both;
animation: circle 10s ease-in-out -2.8s infinite both;
z-index: 14;
}
.circle-15 {
-webkit-animation: circle 10s ease-in-out -3s infinite both;
animation: circle 10s ease-in-out -3s infinite both;
z-index: 15;
}
.circle-16 {
-webkit-animation: circle 10s ease-in-out -3.2s infinite both;
animation: circle 10s ease-in-out -3.2s infinite both;
z-index: 16;
}
.circle-17 {
-webkit-animation: circle 10s ease-in-out -3.4s infinite both;
animation: circle 10s ease-in-out -3.4s infinite both;
z-index: 17;
}
.circle-18 {
-webkit-animation: circle 10s ease-in-out -3.6s infinite both;
animation: circle 10s ease-in-out -3.6s infinite both;
z-index: 18;
}
.circle-19 {
-webkit-animation: circle 10s ease-in-out -3.8s infinite both;
animation: circle 10s ease-in-out -3.8s infinite both;
z-index: 19;
}
.circle-20 {
-webkit-animation: circle 10s ease-in-out -4s infinite both;
animation: circle 10s ease-in-out -4s infinite both;
z-index: 20;
}
.circle-21 {
-webkit-animation: circle 10s ease-in-out -4.2s infinite both;
animation: circle 10s ease-in-out -4.2s infinite both;
z-index: 21;
}
.circle-22 {
-webkit-animation: circle 10s ease-in-out -4.4s infinite both;
animatio.........完整代码请登录后点击上方下载按钮下载查看
网友评论0