div+css实现科技感登录表单页面代码
代码语言:html
所属分类:表单美化
代码描述:div+css实现科技感登录表单页面代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> * { box-sizing: border-box; } html { background: #000; background-size: cover; font-size: 10px; height: 100%; overflow: hidden; position: absolute; text-align: center; width: 100%; } /* ========================================= Stark Industries Logo ========================================= */ #logo { animation: logo-entry 4s ease-in; width: 500px; margin: 0 auto; position: relative; z-index: 40; } h1.hogo { animation: text-glow 2s ease-out infinite alternate; font-family: 'Ubuntu', sans-serif; color: #00a4a2; font-size: 48px; font-size: 4.8rem; font-weight: bold; position: absolute; text-shadow: 0 0 10px #000, 0 0 20px #000, 0 0 30px #000, 0 0 40px #000, 0 0 50px #000, 0 0 60px #000, 0 0 70px #000; top: 50px; } h1.hogo:before { animation: before-glow 2s ease-out infinite alternate; border-left: 535px solid transparent; border-bottom: 10px solid #00a4a2; content: ' '; height: 0; position: absolute; right: -74px; top: -10px; width: 0; } h1.hogo:after { animation: after-glow 2s ease-out infinite alternate; border-left: 100px solid transparent; border-top: 16px solid #00a4a2; content: ' '; height: 0; position: absolute; right: -85px; top: 24px; transform: rotate(-47deg); width: 0; } /* ========================================= Log in form ========================================= */ #fade-box { animation: input-entry 3s ease-in; z-index: 4; } .stark-login form { animation: form-entry 3s ease-in-out; background: #111; background: linear-gradient(#004746, #111111); border: 6px solid #00a4a2; box-shadow: 0 0 15px #00fffd; border-radius: 5px; display: inline-block; height: 220px; margin: 200px auto 0; position: relative; z-index: 4; width: 500px; transition: 1s all; } .stark-login form:hover { border: 6px solid #00fffd; box-shadow: 0 0 25px #00fffd; transition: 1s all; } .stark-login input { background: #222; background: linear-gradient(#333333, #222222); border: 1px solid #444; border-radius: 5px; box-shadow: 0 2px 0 #000; color: #888; display: block; font-family: 'Cabin', helvetica, arial, sans-serif; font-size: 13px; font-size: 1.3rem; height: 40px; margin: 20px auto 10px; padding: 0 10px; text-shadow: 0 -1px 0 #000; width: 400px; } .stark-login input:focus { animation: box-glow 1s ease-out infinite alternate; background: #0B4252; background: linear-gradient(#333933, #222922); border-color: #00fffc; box-shadow: 0 0 5px rgba(0, 255, 253, 0.2), inset 0 0 5px rgba(0, 255, 253, 0.1), 0 2px 0 #000; color: #efe; outline: none; } .stark-login input:invalid { border: 2px solid red; box-shadow: 0 0 5px rgba(255, 0, 0, 0.2), inset 0 0 5px rgba(255, 0, 0, 0.1), 0 2px 0 #000; } .stark-login button { animation: input-entry 3s ease-in; background: #222; background: linear-gradient(#333333, #222222); box-sizing: content-box; border: 1px solid #444; border-left-color: #000; border-radius: 5px; box-shadow: 0 2px 0 #000; color: #fff; display: block; font-family: 'Cabin', helvetica, arial, sans-serif; font-size: 13px; font-weight: 400; height: 40px; line-height: 40px; margin: 20px auto; padding: 0; position: relative; text-shadow: 0 -1px 0 #000; width: 400px; transition: 1s all; } .stark-login button:hover, .stark-login button:focus { background: #0C6125; background: linear-gradient(#393939, #292929); .........完整代码请登录后点击上方下载按钮下载查看
网友评论0