<!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
- 粉丝: 58
最新资源
- (源码)基于Java和Spring Boot框架的停车场管理系统.zip
- (源码)基于Java和Spring Boot框架的交流互动系统.zip
- (源码)基于Spring Boot的旅游推荐系统.zip
- (源码)基于Spring Boot框架的家教管理系统.zip
- (源码)基于Spring Boot框架的师生健康信息管理系统.zip
- (源码)基于SSM框架的健身房管理系统.zip
- (源码)基于Spring框架的车辆租赁管理系统.zip
- (源码)基于Spring Boot框架的养老院管理系统.zip
- (源码)基于Spring Boot框架的电影订票及评论网站.zip
- (源码)基于SSM框架的师生交流平台.zip
- (源码)基于Spring Boot框架的智能停车计费系统.zip
- (源码)基于Spring Boot框架的校园在线拍卖系统.zip
- (源码)基于Spring Boot和Vue的在线视频点播系统.zip
- (源码)基于Spring Boot框架的教师薪酬管理系统.zip
- (源码)基于Spring Boot框架的实习管理系统.zip
- (源码)基于Spring Boot框架的社区与资源评论管理系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


