0
我試圖創建的CSS3轉換簡單的演示,我得到了打,因爲我無法看到的元素旋轉當我使用transform:rotate(180deg)
CSS變換在我的代碼輪播不工作
看到codepen:http://codepen.io/shmdhussain/pen/yYMWba
HTML:
<div class="box transz"></div>
<div class="box rotatex"></div>
CSS:
.box {
background-color: red;
width: 100px;
height: 100px;
}
.transz {
/*Translate Z transform*/
transform: translate3d(100px, 200px, 100px);
}
.rotatex {
transform: rotate(180deg);
}
在簡單的calc中感到困惑,對不起。得到它了。有關z軸變換轉換的任何線索:translate3d(100px,200px,100px); –
此外,我正在使用完美的廣場,只有我無法看到90,270度旋轉。明白了。 translate3d –
的任何幫助沒問題,但你是什麼意思?你從那個變換中尋找什麼行爲?你在那裏的代碼應該稍微移動你的方塊。 – forsooth