layui动态背景炫酷登录页面代码
代码语言:html
所属分类:布局界面
代码描述:layui动态背景炫酷登录页面代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>登陆页面</title> <style> body { background-image: url("//repo.bfw.wiki/bfwrepo/icon/60e78e00e686f.gif"); } #box-perspective { width: 100px; height: 100px; margin: auto; margin-top: 50px; perspective: 800px; perspective-origin: 50% 50%; } #box-preserve-3d { position: absolute; width: 100px; height: 100px; transform-style: preserve-3d; } #box-preserve-3d div { position: absolute; width: 100px; height: 100px; text-align: center; line-height: 100px; } .ball-center-x { border: 1px solid red; border-radius: 100px; width: 200px; height: 200px; transform: rotateY(-90deg); transform-origin: 50% 50%; } .ball-center-x-one { border: 1px solid green; border-radius: 100px; width: 200px; height: 200px; transform: rotateY(0deg); transform-origin: 50% 50%; } .ball-center-x-two { border: 1px solid blue; border-radius: 100px; width: 200px; height: 200px; transform: rotateY(30deg); transform-origin: 50% 50%; } .ball-center-x-three { border: 1px solid yellow; border-radius: 100px; width: 200px; height: 200px; transform: rotateY(60deg); transform-origin: 50% 50%; } .ball-center-x-four { border: 1px solid yellow; border-radius: 100px; width: 200px; height: 200px; transform: rotateY(120deg); transform-origin: 50% 50%; } .ball-center-x-five { border: 1px solid yellow; border-radius: 100px; width: 200px; height: 200px; transform: rotateY(150deg); transform-origin: 50% 50%; } .ball-center-y { border: 1px solid pink; border-radius: 100px; width: 200px; height: 200px; transform: rotateX(90deg); transform-origin: 50% 50%; } .ball-center-y-one { border: 1px solid purple; border-radius: 100px; width: 200px; height: 200px; transform: rotateX(0deg); transform-origin: 50% 50%; } .ball-center-y-two { border: 1px solid cyan; border-radius: 100px; width: 200px; height: 200px; transform: rotateX(30deg); transform-origin: 50% 50%; } .ball-center-y-three { border: 1px solid orange; border-radius: 100px; width: 200px; height: 200px; transform: rotateX(60deg); transform-origin: 50% 50%; } .ball-center-y-four { border: 1px solid orange; border-radius: 100px; width: 200px; height: 200px; transform: rotateX(120deg); transform-origin: 50% 50%; } .ball-center-y-five { border: 1px solid orange; border-radius: 100px; width: 200px; height: 200px; transform: rotateX(150deg); transform-origin: 50% 50%; } #box-perspective { width: 100px; height: 100px; margin-left: 260px; margin-top: 222px; perspective: 800px; perspective-origin: 50% 50%; } #box-preserve-3d { position: absolute; width: 100px; height: 100px; transform-style: preserve-3d; } #box-preserve-3d div { position: absolute; width: 100px; height: 100px; text-align: center; line-height: 100px; color: white; font-size: 26px; } #top { background-image: url('//repo.bfw.wiki/bfwrepo/images/login/top.png'); background-size: 100px; transform: rotateX(90deg) translateZ(100px); transform-origin: 50% 50%; } #bottom { background-image: url('//repo.bfw.wiki/bfwrepo/images/login/top.png'); background-size: 100px; transform: rotateX(-90deg) translateZ(100px); transform-origin: 50% 50%; } #left { background-image: url('//repo.bfw.wiki/bfwrepo/images/login/left.png'); background-size: 100px; transform: rotateY(90deg) translateZ(100px); transform-origin: 50% 50%; } #right { background-image: url('//repo.bfw.wiki/bfwrepo/images/login/left.png'); background-size: 100px; transform: rotateY(-90deg) translateZ(100px); transform-origin: 50% 50%; } #front { background-image: url('//repo.bfw.wiki/bfwrepo/images/login/front.png'); background-size: 100px; transform: translateZ(100px); transform-origin: 50% 50%; } #back { background-image: url('//repo.bfw.wiki/bfwrepo/images/login/front.png'); background-size: 100px; transform: translateZ(-100px) rotateY(-180deg); transform-origin: 50% 50%; } @keyframes turn3d { 0% { transform: rotateY(0) rotateX(0deg); } 100% { transform: rotateY(360deg) rotateX(360deg); } } #box-preserve-3d { .........完整代码请登录后点击上方下载按钮下载查看
网友评论0