当前位置:网站首页>【Case】3d photo album
【Case】3d photo album
2022-08-05 16:18:00 【daze girl】
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style> body {
perspective: 600px; transform-style: preserve-3d; } section {
position: relative; width: 200px; height: 120px; margin: 250px auto; transform-style: preserve-3d; animation: move 10s linear infinite; } div {
position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url(./dog.jpg) no-repeat; background-size: 200px 120px; } div:nth-child(1) {
transform: translateZ(200px); } div:nth-child(2) {
/* Here first rotate and then move,When moving, move according to the rotated coordinate system */ transform: rotateY(60deg) translateZ(200px); } div:nth-child(3) {
transform: rotateY(120deg) translateZ(200px); } div:nth-child(4) {
transform: translateZ(-200px); } div:nth-child(5) {
transform: rotateY(240deg) translateZ(200px); } div:nth-child(6) {
transform: rotateY(300deg) translateZ(200px); } @keyframes move {
/* lean forward,并旋转 */ 0% {
transform: rotateX(-20deg); } 100% {
transform: rotateX(-20deg) rotateY(360deg); } } /* The center image does not move */ .center {
position: absolute; top: 0px; left: 540px; width: 200px; height: 120px; background: url(./dog.jpg) no-repeat; background-size: 200px 120px; transform: rotateX(-20deg); } </style>
</head>
<body>
<section>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</section>
<p class="center"></p>
</body>
</html>

边栏推荐
猜你喜欢
随机推荐
d3:data and datum
网络通信中的基本概念
MySQL 概念
【构造方法概述 Objective-C中】
详解Oracle DELETE和TRUNCATE 的区别
基于consul的服务注册与消费案例
这个「令人上头」的赛道,俞敏洪、高瓴都入了,红杉和腾讯会来吗?
即时通讯开发长连接网关技术:WebSocket实时推送网关技术
MYSQL(进阶篇)——一篇文章带你深入掌握MYSQL
远程push记录:
学习笔记238— 如何在word文档中快速输入各类根号【根号下没输入数字,也不会出现虚线框】
对抗 | 利用de4dot解密被混淆的.NET代码
laravel 子查询
直播弹幕实现
Image Edge Detection - First Order Differential Operator Roberts, Sobel, Prewitt, Kirsch, Robinson
突不了围,阿里海外怎么办?
微信小程序 实现天气预报接入
华为设备配置MSTP+VRRP组合组网
【翻译】EF Core 3.1.x, 5.x & 6.x Second Level Cache Interceptor
今年考研?七夕顺便把心形线复习一下








