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;
}
.con.........完整代码请登录后点击上方下载按钮下载查看

网友评论0