<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>仿天猫图片墙</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<style type="text/css">
*{margin: 0;padding: 0;}
</style>
</head>
<body>
<div class="htmleaf-content">
<ul id="iconWall">
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon1.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon11.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon2.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon12.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon3.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon13.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon4.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon14.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon5.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon15.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon6.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon16.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon7.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon17.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon8.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon18.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon9.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon19.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon10.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon20.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon21.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon31.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon22.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon32.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon23.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon33.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon24.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon34.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon25.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon35.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon26.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon36.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon27.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon37.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon28.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon38.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon29.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon39.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon30.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon41.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon42.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon43.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon44.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon45.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon22.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon13.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li id="btnRefresh">
<div class="iconRefresh"></div>
<span>换一批</span>
</li>
</ul>
</div>
<script type="text/javascript">
window.onload = function(){
var clickTimes = 1;
var lineCount = 6;
var btnRefresh = document.querySelector("#btnRefresh");
var iconRefresh = document.querySelector(".iconRefresh");
var img3DList = document.querySelectorAll(".img-3d");
var len = img3DList.length;
btnRefresh.onclick = function(){
iconRefresh.style.transition = ".3s linear";
iconRefresh.style.transform = "rotate("+360*clickTimes+"deg)";
for(var i = 0; i < len ; i++ ){
var colNum = parseInt(i/lineCount);
var rowNum = i%lineCount;
var delayTime = (colNum + rowNum)*100;
img3DList[i].style.transition = ".3s"+delayTime+"ms linear";
img3DList[i].style.transform = "rotateY("+180*clickTimes+"deg)";
}
clickTimes++;
}
}
</script>
</body>
</html>
<html>
<head>
<meta charset="utf-8" />
<title>仿天猫图片墙</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<style type="text/css">
*{margin: 0;padding: 0;}
</style>
</head>
<body>
<div class="htmleaf-content">
<ul id="iconWall">
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon1.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon11.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon2.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon12.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon3.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon13.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon4.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon14.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon5.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon15.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon6.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon16.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon7.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon17.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon8.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon18.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon9.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon19.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon10.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon20.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon21.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon31.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon22.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon32.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon23.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon33.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon24.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon34.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon25.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon35.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon26.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon36.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon27.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon37.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon28.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon38.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon29.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon39.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon30.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon41.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon42.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon43.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon44.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon45.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li>
<div class="img-3d">
<div class="img-back">
<img src="img/icon22.jpg" alt="">
</div>
<div class="img-front">
<img src="img/icon13.jpg" alt="">
</div>
</div>
<div class="mask">
<img src="img/heart.png" alt="">
<p>关注人数 323.4万</p>
<a href="javascript:">点击进入</a>
</div>
</li>
<li id="btnRefresh">
<div class="iconRefresh"></div>
<span>换一批</span>
</li>
</ul>
</div>
<script type="text/javascript">
window.onload = function(){
var clickTimes = 1;
var lineCount = 6;
var btnRefresh = document.querySelector("#btnRefresh");
var iconRefresh = document.querySelector(".iconRefresh");
var img3DList = document.querySelectorAll(".img-3d");
var len = img3DList.length;
btnRefresh.onclick = function(){
iconRefresh.style.transition = ".3s linear";
iconRefresh.style.transform = "rotate("+360*clickTimes+"deg)";
for(var i = 0; i < len ; i++ ){
var colNum = parseInt(i/lineCount);
var rowNum = i%lineCount;
var delayTime = (colNum + rowNum)*100;
img3DList[i].style.transition = ".3s"+delayTime+"ms linear";
img3DList[i].style.transform = "rotateY("+180*clickTimes+"deg)";
}
clickTimes++;
}
}
</script>
</body>
</html>