課程
/前端開發(fā)
/HTML/CSS
/十天精通CSS3
具體需要怎樣寫?
2016-05-02
源自:十天精通CSS3 9-2
正在回答
??????????? /* 任務(wù)三、設(shè)置3D舞臺布景 */??????????? perspective: 200px;??? ???????????? /*任務(wù)四、設(shè)置3D舞臺布景過渡效果*/??????????? transition: all 0.7s linear;???? ???????????? position: relative;??????? }??????????? .three-d:not(.active):hover {??????????????? cursor: pointer;??????????? }??????????????? /*任務(wù)五、給不是當(dāng)前狀態(tài)的3D舞臺的懸浮與聚焦?fàn)顟B(tài)設(shè)置變形效果*/??????????????? .three-d:not(.active):hover .three-d-box,??????????????? .three-d:not(.active):focus .three-d-box {??????????????????? transform: translateZ(-25px) rotateX(90deg);??????????????? }??????? .three-d-box {??????????? /*任務(wù)六、給3D舞臺中“.three-d-box”設(shè)置過渡與變形效果*/??????????? transform: translateZ(-25px);??????????? transition: all .3s ease-out;??????????? transform-style: preserve-3d;??????????? pointer-events: none;??????????? position: absolute;??????????? top: 0;??????????? left: 0;??????????? display: block;??????????? width: 100%;??????????? height: 100%;??????? }??????? /*任務(wù)七、給導(dǎo)航設(shè)置3D前,與3D后變形效果*/??????? .front {??????????? transform: rotateX(0deg) translateZ(25px);??? ???????? }??????? .back {??????????? transform: rotateX(-90deg) translateZ(25px);??????????? color: #FFE7C4;??????? }
慕粉3125604 提問者
舉報
本課程為CSS3入門教程,深刻詳解CSS3知識讓網(wǎng)頁穿上絢麗裝備
2 回答為什么加了px之后沒效果了?
3 回答為什么沒效果
2 回答為什么用nth_child(n),不起效果
4 回答任務(wù)7 .bg:not(:target) 做完之后為什么沒有效果
2 回答為什么沒有效果
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2016-05-03
??????????? /* 任務(wù)三、設(shè)置3D舞臺布景 */
??????????? perspective: 200px;
??? ?
??????????? /*任務(wù)四、設(shè)置3D舞臺布景過渡效果*/
??????????? transition: all 0.7s linear;
???? ?
??????????? position: relative;
??????? }
??????????? .three-d:not(.active):hover {
??????????????? cursor: pointer;
??????????? }
??????????????? /*任務(wù)五、給不是當(dāng)前狀態(tài)的3D舞臺的懸浮與聚焦?fàn)顟B(tài)設(shè)置變形效果*/
??????????????? .three-d:not(.active):hover .three-d-box,
??????????????? .three-d:not(.active):focus .three-d-box {
??????????????????? transform: translateZ(-25px) rotateX(90deg);
??????????????? }
??????? .three-d-box {
??????????? /*任務(wù)六、給3D舞臺中“.three-d-box”設(shè)置過渡與變形效果*/
??????????? transform: translateZ(-25px);
??????????? transition: all .3s ease-out;
??????????? transform-style: preserve-3d;
??????????? pointer-events: none;
??????????? position: absolute;
??????????? top: 0;
??????????? left: 0;
??????????? display: block;
??????????? width: 100%;
??????????? height: 100%;
??????? }
??????? /*任務(wù)七、給導(dǎo)航設(shè)置3D前,與3D后變形效果*/
??????? .front {
??????????? transform: rotateX(0deg) translateZ(25px);
??? ?
??????? }
??????? .back {
??????????? transform: rotateX(-90deg) translateZ(25px);
??????????? color: #FFE7C4;
??????? }