canvas黑洞404页面效果代码
代码语言:html
所属分类:布局界面
代码描述:canvas黑洞404页面效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url(https://fonts.googleapis.com/css?family=Roboto:300,900); html, body { margin: 0; overflow: hidden; background: #0A0A0A; } canvas { -webkit-animation: rotate 30s linear infinite; animation: rotate 30s linear infinite; } .content { margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; width: 50vw; height: 50vh; text-align: center; } h1, h2 { margin: 0; color: #fff; text-shadow: 0 0 100px #00f, 0 3px 0 rgba(50, 0, 100, 0.8); -webkit-filter: url(#drop-shadow); filter: url(#drop-shadow); font-family: Roboto; font-weight: 300; } h1 { font-size: 30vh; } h2 { font-size: 7vh; } .black-hole { font-weight: 900; text-shadow: 0 0 50px #8E57FF; -webkit-backface-visibility: hidden; backface-visibility: hidden; position: relative; -webkit-animation: pulse 1s ease infinite, pulse2 1s ease infinite; animation: pulse 1s ease infinite, pulse2 1s ease infinite; } .black-hole:after { content: "0"; position: absolute; top: 6%; left: 5%; color: #f9f; font-size: 90%; -webkit-filter: blur(5px); filter: blur(5px); } .black-hole:before { content: "0"; position: absolute; top: 0; left: 0; color: #f0f; -webkit-filter: blur(5px); filter: blur(5px); } @-webkit-keyframes pulse { 0% { -webkit-transform: scale(0.95) rotateZ(-3deg) translateZ(0); transform: scale(0.95) rotateZ(-3deg) translateZ(0); } 50% { -webkit-transform: scale(1.05) rotateZ(3deg) translateZ(0); transform: scale(1.05) rotateZ(3deg) translateZ(0); } 100% { -webkit-transform: scale(0.95) rotateZ(-3deg) translateZ(0); transform: scale(0.95) rotateZ(-3deg) translateZ(0); } } @keyframes pulse { 0% { -webkit-transform: scale(0.95) rotateZ(-3deg) translateZ(0); transform: scale(0.95) rotateZ(-3deg) translateZ(0); } 50% { -webkit-transform: scale(1.05) rotateZ(3deg) translateZ(0); transform: scale(1.05) rotateZ(3deg) translateZ(0); } 100% { -webkit-transform: scale(0.95) rotateZ(-3deg) translateZ(0); transform: scale(0.95) rotateZ(-3deg) translateZ(0); } } @-webkit-keyframes pulse2 { 0% { text-shadow: 0 0 50px #8E57FF; -webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg); } 50% { text-shadow: 0 0 60px #8000FF; -webkit-filter: hue-rotate(30deg); filter: hue-rotate(30deg); } 100% { text-shadow: 0 0 50px #8E57FF; -webkit-filter: hue-rotate(-30deg); filter: hue-rotate(-30deg); } } @keyframes pulse2 { 0% { text-shadow: 0 0 50px #8E57FF; -webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg); } 50% { text-shadow: 0 0 60px #8000FF; -webkit-filter: hue-rotate(30deg); filter: hue-rotate(30deg); } 100% { text-shadow: 0 0 50px #8E57FF; -webkit-filter: hue-rotate(-30deg); filter: hue-rotate(-30deg); } } @-webkit-keyframes rot.........完整代码请登录后点击上方下载按钮下载查看
网友评论0