css实现个人信息卡片打开效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现个人信息卡片打开效果代码

代码标签: 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/font-awesome-4.7.0/css/font-awesome.min.css">
    <style>
        .pCard_card .pCard_back a i{
        margin: 10px;
        padding: 15px;
        -webkit-border-radius: 15px;
        -moz-border-radius: 15px;
        -ms-border-radius: 15px;
        -o-border-radius: 15px;
        border-radius: 15px;
        -webkit-transition: .3s ease-in-out;
        -moz-transition: .3s ease-in-out;
        -ms-transition: .3s ease-in-out;
        -o-transition: .3s ease-in-out;
        transition: .3s ease-in-out;
    }
    
    .pCard_card .pCard_back a i:hover{
        -webkit-transform: scale(1.2);
        -moz-transform: scale(1.2);
        -ms-transform: scale(1.2);
        -o-transform: scale(1.2);
        transform: scale(1.2);
    }
    
    .pCard_card .pCard_back a:nth-of-type(1) i {
        color: #3B5998;
        border: 2px solid #3B5998;
    }
    
    
    .pCard_card .pCard_back a:nth-of-type(2) i{
        color: #0077B5;
        border: 2px solid #0077B5;
    }
    
    .pCard_card .pCard_back a:nth-of-type(3) i{
        color: #1769FF;
        border: 2px solid #1769FF;
    }
    
    .pCard_card .pCard_back a:nth-of-type(4) i{
        color: #000000;
        border: 2px solid #000000;
    }
    
    .pCard_card .pCard_back a:nth-of-type(5) i{
        color: #EB5E95;
        border: 2px solid #EB5E95;
    }
    
    .pCard_card .pCard_back a:nth-of-type(6) i{
        color: #3F729B;
        border: 2px solid #3F729B;
    }
    
    
    .pCard_card  .pCard_up .pCard_add i {
        color: white;
        font-size: 38px;
        line-height: 88px;
    }
    body {
        font-family: 'Open Sans', sans-serif;
        background-color: #f1f9fc;
        -webkit-box-sizing: content-box;
        -moz-box-sizing: content-box;
        -ms-box-sizing: content-box;
        -o-box-sizing: content-box;
        box-sizing: content-box;
        padding: 0;
        margin: 0;
    }
    
    .pCard_card {
        width: 400px;
        height: 615px;
        margin: 50px auto;
        -webkit-border-radius: 30px;
        -moz-border-radius: 30px;
        -ms-border-radius: 30px;
        -o-border-radius: 30px;
        border-radius: 30px;
        background-color: #f6fcfe;
        -webkit-box-shadow: 0px 20px 70px 0px rgba(0, 0, 0, 0.21);
        -moz-box-shadow: 0px 20px 70px 0px rgba(0, 0, 0, 0.21);
        -ms-box-shadow: 0px 20px 70px 0px rgba(0, 0, 0, 0.21);
        -o-box-shadow: 0px 20px 70px 0px rgba(0, 0, 0, 0.21);
        box-shadow: 0px 20px 70px 0px rgba(0, 0, 0, 0.21);
        position: relative;
        overflow: hidden;
    }
    
    /****************
    Back
    ****************/
    
    .pCard_card .pCard_back {
        text-align: center;
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        margin-top: -139px;
        font-weight: 600;
        z-index: 1;
        
        
    }
    .pCard_card .pCard_back a {
        text-decoration: none;
    }
    
    /****************
    UP
    ****************/
    
    .pCard_card  .pCard_up {
        position: absolute;
        width: 100%;
        height: 437px;
        background-image: url(//repo.bfw.wiki/bfwrepo/image/60d41f5173b0d.png);
        background-position: 50%;
        background-size: cover;
        z-index: 3;
        text-align: center;
        -webkit-border-top-left-radius: 30px;
        -moz-border-top-left-radius: 30px;
        -ms-border-top-left-radius: 30px;
        -o-border-top-left-radius: 30px;
        border-top-left-radius: 30px;
        -webkit-border-top-right-radius: 30px;
        -moz-border-top-right-radius: 30px;
        -ms-border-top-right-radius: 30px;
        -o-border-top-right-radius: 30px;
        border-top-right-radius: 30px;
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        -ms-transition: .5s ease-in-out;
        -o-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        
    }
    
    .pCard_on  .pCard_up {
        height: 100px;
        box-shadow: 0 0 30px #CFD8DC;
    }
    
    .pCard_card  .pCard_up .pCard_text {
        position: absolute;
        top: 319px;
        left: 0;
        right: 0;
        color: #f1f7f9;
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        -ms-transition: .5s ease-in-out;
        -o-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
    }
    
    .pCard_on  .pCard_up .pCard_text {
        top: 20px;
    }
    
    .pCard_card  .pCard_up .pCard_text h2{
        margin: 0;
        font-size: 25px;
        font-weight: 600;
    }
    
    .pCard_card  .pCard_up .pCard_text p{
        margin: 0;
        font-size: 16px;
        color: #E3F1F5;
    }
    
    .pCard_card  .pCard_up .pCard_add {
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        -ms-border-radius: 50%;
        -o-border-radius: 50%;
        border-radius: 50%;
        backg.........完整代码请登录后点击上方下载按钮下载查看

网友评论0