特炫的三維相冊分享出來,希望大家喜歡!
XML/HTML Code復制內(nèi)容到剪貼板
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>三維動畫</title>
<style type="text/css">
* {
padding : 0px;
margin: 0px;
}
body {
background: url(images/758.jpg) no-repeat top center;
}
.product {
height: 400px;
position: fixed;
top: 20%;
right: 20%;
/*視距*/
perspective : 500px;
}
.scene {
height: 250px;
width: 250px;
transform-style: preserve-3d;
transform-origin: 50%;
margin: 100px;
/*定義一個名為slide的動畫*/
animation: slide 12s linear infinite;
}
.scene ul li {
width: 230px;
height: 230px;
list-style: none;
border: 5px solid rgba(255, 255, 255, 0.5);
position: absolute;
}
@keyframes slide{
from{
transform: rotateY(0deg);
}
to{
transform: rotateY(360deg);
}
}
.s1 {
float: left;
}
.s1 ul li:nth-child(1) {
新聞熱點
疑難解答