css翻頁技巧

<!DOCTYPE html>
<html>
    <head>
        <meta charset="gb-2312">
        <title></title>
        <style type="text/css">
            *{
                padding: 0;
                margin: 0;
            }

            .cube-box{

                cursor: pointer;
                position: relative;
                display: block;
                width: 100px;
                height: 100px;
                                perspective:3000px;
                transform-style: preserve-3d;
                -webkit-transform-style:preserve-3d;
                transition: transform 0.4s linear 0s;
                -webkit-transition:-webkit-transform 0.4s linear 0s;
                transform: rotateY(0deg);
                -webkit-transform:rotateY(0deg);    
            }
            .cube-box>div{
                position: absolute;
                display: block;
                width:100%;
                height: 100%;
                line-height: 100px;
                text-align: center;
                text-decoration: none;
                color: white;
                font-size: 30px;
                box-shadow: 5px 5px 20px 5px #cacaca;               
            }
            .cube-box .cube-normal{
                /*-webkit-transform: translateZ(100px);

                transform:translateZ(100px);*/
                background-color: black;
            }
            .cube-box .cube-hover{
                -webkit-transform: rotateY(180deg);
                transform: rotateY(180deg);
                background-color:burlywood;
            }
            .cube-box:hover{
                transform: rotateY(-180deg);
                -webkit-transform:rotateY(-180deg);
            }
        </style>
        <script src="developWorkplace/src/common/005eqxCommon.js"></script>
    </head>
    <body>
            <div class="ss">
                <div class="cube-box">
                    <div class="cube-normal">body</div>
                    <div class="cube-hover">girl</div>
                </div>
             </div>
    </body>
</html>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章