当前位置:网站首页>Learning exploration-3d rotation card
Learning exploration-3d rotation card
2022-07-25 23:24:00 【miao_ zz】
3d Rotation card
Effect example picture


Code example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>3d Rotation card </title>
<style type="text/css">
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.card-container {
width: 150px;
height: 75px;
margin: 60px auto;
position: relative;
perspective: 300px;
}
.card-wrap {
position: absolute;
width: 100%;
height: 100%;
transform-style: preserve-3d;
transform: rotateY(0deg) translateZ(-150px);
animation: scroll 10s cubic-bezier(0.77, 0, 0.2, 1) infinite;
}
.card-item {
width: 100%;
height: 100%;
position: absolute;
/* Add reflection */
-webkit-box-reflect: below 15px -webkit-linear-gradient(transparent 50%, rgba(255, 255, 255, 0.5));
}
.card-item:nth-of-type(1) {
transform: rotateY(0deg) translateZ(150px);
}
.card-item:nth-of-type(2) {
transform: rotateY(72deg) translateZ(150px);
}
.card-item:nth-of-type(3) {
transform: rotateY(144deg) translateZ(150px);
}
.card-item:nth-of-type(4) {
transform: rotateY(216deg) translateZ(150px);
}
.card-item:nth-of-type(5) {
transform: rotateY(288deg) translateZ(150px);
}
@keyframes scroll {
0% {
transform: translateZ(-150px) rotateY(0deg);
}
20% {
transform: translateZ(-150px) rotateY(-72deg);
}
40% {
transform: translateZ(-150px) rotateY(-144deg);
}
60% {
transform: translateZ(-150px) rotateY(-216deg);
}
80% {
transform: translateZ(-150px) rotateY(-288deg);
}
100% {
transform: translateZ(-150px) rotateY(-360deg);
}
}
</style>
</head>
<body>
<div class="card-container">
<div class="card-wrap">
<img class="card-item" src="img/1.jpg" />
<img class="card-item" src="img/2.jpg" />
<img class="card-item" src="img/3.jpg" />
<img class="card-item" src="img/4.jpg" />
<img class="card-item" src="img/5.jpg" />
</div>
</div>
</body>
</html>
边栏推荐
- r语言绘图参数(R语言plot画图)
- 推荐系统——An Embedding Learning Framework for Numerical Features in CTR Prediction
- Secure code warrior learning record (III)
- Kotlin 常用知识点汇总
- @Autowired annotation required attribute
- 网格参数化Least Squares Conformal Maps实现(3D网格映射到2D平面)
- Longitude and latitude and its transformation with coordinate system
- 2022牛客多校第二场
- PyTorch的数据输入格式要求及转换
- Node基础
猜你喜欢

POI special effects Market Research

Expression of directional signal -- complex exponential signal

Family relationship calculator wechat applet source code

Enabling partners, how can Amazon cloud technology "get on the horse and get a ride"?

谷粒学苑P98踩坑 e.GlobalExceptionHandler : null

行云管家V6.5.1/2/3系列版本发布:数据库OpenAPI能力持续强化

PHP JSON variable array problem

Very simple vsplayaudio online music player plug-in

The new UI people help task help PHP source code with a value of 1500 / reward task Tiktok Kwai headline like source code / with three-level distribution can be packaged applet

Custom MVC principle
随机推荐
模拟实现string类常用接口
firewall 命令简单操作
[QNX Hypervisor 2.2用户手册]9.8 load
赋能合作伙伴,亚马逊云科技如何落地“扶上马,送一程”?
连续三年成为云AI服务领导者,亚马逊云科技做对了什么?
WordPress removes the website publishing time
Summary of built-in instructions and custom instructions
Node基础
TS class
serialization and deserialization
idea设置get、set模板解决boolean类型字段的命名问题
Wechat official account, wechat payment development
Custom MVC principle
Discuz magazine / news report template (jeavi_line) utf8 GBK / DZ template download
多模态——Deep Multi-Modal Sets
Serialize addition, deletion, modification and query
The difference between MySQL clustered index and non clustered index
Drive board network cable directly connected to computer shared network configuration
How to set pseudo static for WordPress fixed links
JS get the current date and time