慕者传说
2015-06-11 16:12
<script type="text/javascript">
var run = 1;
function next(){
if(run == 5){ return; }
var box = document.getElementById("page"+run);
box.style.webkitTransform = "rotateX(-90deg)";
run ++;
var box = document.getElementById("page"+run);
box.style.webkitTransform="rotateX(0deg)";
}
function prev(){
if(run == 1){ return; }
var box =document.getElementById("page"+run);
box.style.webkitTransform = "rotateX(90deg)";
run --;
var box =document.getElementById("page"+run);
box.style.webkitTransform = "rotateX(0deg)";
}
</script>
No problem
CSS3 3D 特效
78572 学习 · 425 问题
相似问题