第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

page1翻過(guò)去后會(huì)有陰影

設(shè)置page-group height為100px時(shí):

http://img1.sycdn.imooc.com//58e872630001d36301610161.jpg

設(shè)置page-group height為200px時(shí):

http://img1.sycdn.imooc.com//58e872640001449e01630258.jpg

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>正方體翻頁(yè)3D效果</title>

<style type="text/css">

.container{

-webkit-perspective: 800px;

-webkit-perspective-origin:50% 50%;

}

.page-group{

width:200px;

height:200px;/*設(shè)置width為100px的話page2.。。會(huì)有高度???*/

margin:10px auto;

position:relative;

-webkit-transform-style:preserve-3d;

}

.page{

width:100px;

height:100px;

background:#000;

text-align:center;

color:#fff;

font-size:100px;

line-height: 100px;

position:absolute;

-webkit-transform-origin:bottom;

-webkit-transition:-webkit-transform 0.5s linear;

}

#page1{

}

#page2,#page3,#page4,#page5,#page6{

-webkit-transform:rotateX(90deg);


}

.operation{

width:200px;

margin:0 auto;

}

</style>

</head>

<body>

<div class="container">

<div class="page-group">

<div class="page" id="page1">1</div>

<div class="page" id="page2">2</div>

<div class="page" id="page3">3</div>

<div class="page" id="page4">4</div>

<div class="page" id="page5">5</div>

<div class="page" id="page6">6</div>

</div>

</div>

<div class="operation">

<button id="next">next</button>

<button id="prev">prev</button>

</div>


<script type="text/javascript">

var curIndex=1;

var next=document.getElementById("next");

var prev=document.getElementById("prev");

next.onclick=function(){

if(curIndex==6){

return;

}

var curElem=document.getElementById("page"+curIndex);

curIndex++;

var nextElem=document.getElementById("page"+curIndex);

curElem.style.webkitTransform="rotateX(-90deg)";

nextElem.style.webkitTransform="rotateX(0deg)";

}

prev.onclick=function(){

if(curIndex==1){

return;

}

var curElem=document.getElementById("page"+curIndex);

curIndex--;

var prevElem=document.getElementById("page"+curIndex);

curElem.style.webkitTransform="rotateX(90deg)";

prevElem.style.webkitTransform="rotateX(0deg)";

}

</script>

</body>

</html>


正在回答

1 回答

瀏覽器問(wèn)題,我用360也會(huì)有,有些動(dòng)畫(huà)還放不出來(lái),換其他瀏覽器試試

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

page1翻過(guò)去后會(huì)有陰影

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)