为什么做不了效果?

来源:9-2 CSS3中调用动画

慕粉3125604

2016-05-02 10:50

具体需要怎样写?

写回答 关注

1回答

  • qq_包包世界我专业_0
    2016-05-03 16:19:49
    已采纳

                /* 任务三、设置3D舞台布景 */
                perspective: 200px;
         
                /*任务四、设置3D舞台布景过渡效果*/
                transition: all 0.7s linear;
          
                position: relative;
            }

                .three-d:not(.active):hover {
                    cursor: pointer;
                }

                    /*任务五、给不是当前状态的3D舞台的悬浮与聚焦状态设置变形效果*/
                    .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;
            }

    慕粉3125...

    非常感谢!

    2016-12-24 13:35:43

    共 1 条回复 >

十天精通CSS3

本课程为CSS3入门教程,深刻详解CSS3知识让网页穿上绚丽装备

242213 学习 · 2623 问题

查看课程

相似问题