div+css实现三维立体个人信息卡片悬浮翻转出联系表单效果代码
代码语言:html
所属分类:表单美化
代码描述:div+css实现三维立体个人信息卡片悬浮翻转出联系表单效果代码
代码标签: div css 三维 立体 个人 信息 卡片 悬浮 翻转 联系 表单
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/normalize.5.0.css"> <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Montserrat:300,400,700'> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { height: 100vh; display: flex; justify-content: center; align-items: center; perspective: 1000px; transform-style: preserve-3d; position: relative; background-color: #111; font-family: "Montserrat"; } .container { min-width: 700px; min-height: 350px; border-radius: 20px; position: relative; transition: 1.5s ease-in-out; transform-style: preserve-3d; } .side { position: absolute; text-align: center; width: 100%; height: 100%; padding: 20px 50px; color: #fff; transform-style: preserve-3d; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 20px; } .content { transform: translatez(70px) scale(0.8); line-height: 1.5em; } .content h1 { position: relative; } .content p { margin-top: 50px; line-height: 2em; } .content h1:before { content: ""; position: absolute; bottom: -20px; height: 3px; background-color: #3e3; width: 70px; left: 50%; transform: translateX(-50%); } .front { z-index: 2; background-size: 100vh; background-size: cover; background-image: url(//repo.bfw.wiki/bfwrepo/image/64b3b23ccc5ef.png); } .back { background-color: #333; transform: rotateY(180deg); z-index: 0; padding-top: 10px; background-image: url(//repo.bfw.wiki/bfwrepo/image/64b3b23ccc5ef.png); } .container:hover { transform: rotateY(180deg); } form { text-align: left; } .back h1 { margin: 0; } form label, form inpu.........完整代码请登录后点击上方下载按钮下载查看
网友评论0