照片墙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>

相关推荐
芜青2 小时前
HTML+CSS:浮动详解
前端·css·html
Sokach3865 小时前
vue3引入tailwindcss 4.1
前端·css
前端Hardy8 小时前
HTML&CSS:有趣的SVG路径动画效果
javascript·css
前端Hardy8 小时前
HTML&CSS:超酷炫的3D动态卡片
前端·javascript·css
不在了情绪11 小时前
HTML 简明教程
html
代码改变世界1008612 小时前
像素风球球大作战 HTML 游戏
前端·游戏·html
IT利刃出鞘12 小时前
HTML--pre标签的作用
前端·chrome·html
样子20181 天前
Uniapp 之renderjs解决swiper+多个video卡顿问题
前端·javascript·css·uni-app·html
CF14年老兵1 天前
「Vue 3 + View Transition 实现炫酷圆形缩放换肤动画」
前端·css·trae
前端小书童1 天前
前端开发中的css:「ink → Bootstrap → 预处理器 → Tailwind → UnoCSS」
前端·css