照片墙html

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" />

<title></title>

<style>

*{

margin: 0;

padding: 0;

}

body{

background-color: peachpuff;

}

.bigbox{

width: 800px;

height: 400px;

margin: 80px auto 0px;

perspective: 1000px;

}

.box{

width: 800px;

height: 400px;

position: relative;

transition: all ease 1s;

transform-style: preserve-3d;

animation: rotate_img 15s ease infinite;

}

.card{

width: 200px;

height: 300px;

background-size: cover;

box-shadow: 0 0 8px #ffaaff;

-webkit-box-reflect: below 15px;

lineear-gradient(transparent,transparent,#ffaaff);

position: absolute;

bottom: 0px;

left: 50%;

margin-left: -130px;

}

.box1{

background-image: url(img/1.jpg);

transform: translateZ(300px);

}

.box2{

background-image: url(img/2.jpg);

transform: rotateY(51.4deg) translateZ(300px);

}

.box3{

background-image: url(img/3.webp);

transform: rotateY(102.8deg) translateZ(300px);

}

.box4{

background-image: url(img/4.jpg);

transform: rotateY(154.2deg) translateZ(300px);

}

.box5{

background-image: url(img/5.jfif);

transform: rotateY(205.7deg) translateZ(300px);

}

.box6{

background-image: url(img/6.webp);

transform: rotateY(257.1deg) translateZ(300px);

}

.box7{

background-image: url(img/7.jpg);

transform: rotateY(308.5deg) translateZ(300px);

}

@keyframes rotate_img{

0%{

transform: rotateX(-10deg) rotateY(0deg);

}

100%{

transform: rotateX(-10deg) rotateY(360deg);

}

}

</style>

</head>

<body>

<div class="bigbox">

<div class="box">

<div class="card box1"></div>

<div class="card box2"></div>

<div class="card box3"></div>

<div class="card box4"></div>

<div class="card box5"></div>

<div class="card box6"></div>

<div class="card box7"></div>

</div>

</div>

</body>

</html>

相关推荐
keyipatience8 小时前
JavaScript学习(1)书写位置,变量、数据类型、运算符
开发语言·前端·javascript·css·学习
java1234_小锋10 小时前
【技术专题】HTML5 网页技术 - HTML5简介 & HTML5 文档结构
前端·html·html5
酷炫码神14 小时前
Day 2|CSS 盒模型:把昨天的骨架,变成能看的页面
前端·css
keyipatience16 小时前
JS学习笔记(2)数组,函数,作用域,对象
前端·javascript·笔记·学习·html
oicola17 小时前
Ant Design v5 vs Tailwind CSS:组件库与样式框架的终极对决
前端·css
java1234_小锋18 小时前
【技术专题】HTML5 网页技术 - HTML5 列表标签
前端·html·html5
data analyse 4561 天前
前端白屏问题按路由和资源加载顺序定位
大数据·前端·人工智能·数据分析·html
软件技术NINI1 天前
美妆商城html+Css+js 4页
javascript·css·html
2603_965896622 天前
Grid 网格布局|CSS 二维页面排版体系
前端·css
多喝水身体棒2 天前
# CSS Grid布局入门,二维布局再也不用float了
css