<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D图片卡片</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
background-color: #f0f0f0;
font-family: Arial, sans-serif;
}
.img-card {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.img-card-3dcontent {
width: 250px;
height: 323px;
padding: 20px;
border: 1px solid #e0e0e0;
background-color: #ffffff;
border-radius: 12px;
transition: transform 0.2s ease;
margin: 10px;
}
.card {
width: auto;
height: 274px;
position: relative;
margin: 0 auto;
}
.card p {
font-weight: 600;
}
.card img {
position: absolute;
width: 180px;
top: 50px;
left: 0;
}
.card .cover {
height: 100%;
z-index: 1;
border-radius: 5px;
transition: all 1s;
}
.card .girl {
height: 100%;
z-index: 2;
opacity: 0;
object-fit: cover;
transition: all 1s;
}
.card .txt {
width: 180px;
height: 304px;
opacity: 0;
position: absolute;
left: 0;
z-index: 3;
bottom: 0;
filter: drop-shadow(2px 2px 2px #000);
transition: all 0.75s;
}
.card:hover .cover {
transform: perspective(600px) rotateX(30deg);
box-shadow: 0 35px 35px -10px rgba(0, 0, 0, 0.75);
}
.card:hover .txt {
opacity: 1;
width: 200px;
height: 280px;
left: -10px;
transform: perspective(300px) translate3d(0 -15px, 200px);
}
.card:hover .girl {
opacity: 1;
transform: perspective(300px) translate3d(0, -50px, 40px);
}
</style>
</head>
<body>
<div class="img-card">
<div class="img-card-3dcontent">
<div class="card">
<p>3d图片卡片人像站立</p>
<img src="./cover.png" alt="" class="cover" />
<img src="./girl.png" alt="" class="girl" />
<img src="./txt.png" alt="" class="txt" />
</div>
</div>
</div>
</body>
</html>

weixin_42339193
- 粉丝: 59
最新资源
- 【三菱PLC例程】-x62w万能铣床.zip
- 【三菱PLC例程】-奥菱达8层货梯.zip
- 【三菱PLC例程】-八层以下货梯通用程序(奥菱达).zip
- 【三菱PLC例程】-YX细伸拉丝机三菱FX PLC程序(有注解)张力控制与传统的指拔开关不一样.zip
- 【三菱PLC例程】-八点间歇时间控制.zip
- 【三菱PLC例程】-八路抢答器.zip
- 【三菱PLC例程】-八路抢答器fx1s-plc设计.zip
- 【三菱PLC例程】-半自动丝网印刷机.zip
- 【三菱PLC例程】-包装机.zip
- 【三菱PLC例程】-包装机三菱PLC程序.zip
- 【三菱PLC例程】-宝钢电梯程序带注释.zip
- 【三菱PLC例程】-北京现代发动机传送线有自动仓库.zip
- 【三菱PLC例程】-薄膜卷取机小日本写的.zip
- 【三菱PLC例程】-本人某摩擦材料厂压机液压系统设计的程序.zip
- 【三菱PLC例程】-比较简单仪表车改造程序,可供初学者学习.zip
- 【三菱PLC例程】-本壓壓焊機.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


