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 .........完整代码请登录后点击上方下载按钮下载查看
网友评论0