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