栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > Web开发 > Vue.js

移动端 3D 视图层 加部分交互

Vue.js 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

移动端 3D 视图层 加部分交互







    
    
    
    
    
    
    
    .down-enter, .down-leave-to {
        opacity: 0;
        transform: translateZ(150px) translateY(-100%) !important;;
    }

    .down-enter-active, .down-leave-active {
        transition: all 0.5s !important;
    }

    .down-enter-to, .down-leave {
        opacity: 1;
        transform: translateZ(150px) translateY(0px) !important;
    }


    .wrap {
        width: 50%;
        height: 50%;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
        
        transform-style: preserve-3d;
        perspective: 2000px;
        
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 14px;
    }

    .wrap1 {
        perspective: 2000px;
        transform-style: preserve-3d;
    }

    .control {
        width: 100%;
        height: 100%;
        position: absolute;
    }

    .control .range {
        position: absolute;
        bottom: 0;
        z-index: 2;
    }

    .show-wrap {
        text-align: center;
        width: 375px;
        height: 660px;
        border: 1px solid #000;
        transform-style: preserve-3d;
        perspective: 20000px;
        transform: rotateX(26deg) rotateY(31deg) rotateZ(-20deg);
        
        
        position: relative;
    }

    @keyframes rotateZ {
        0% {
            transform: rotateX(40deg) rotateZ(0deg)
        }
        50% {
            transform: rotateX(40deg) rotateZ(180deg)
        }
        100% {
            transform: rotateX(40deg) rotateZ(360deg)
        }
    }

    [class^="tier-"] {
        position: absolute;
        width: 100%;
        height: 100%;
        
    }

    .tier-1 {
        transform: translateZ(0px);
        background: #b1c4ee;
    }

    .tier-2 {
        transform: translateZ(50px);
        background: rgba(255, 255, 255, 0.65);
        box-shadow: 0 0 10px #000;
    }

    .tier-2 .app-topbar {
        background: #37a9ec;
        color: #fff;
        height: 40px;
        line-height: 40px;
    }

    .title {
        background: #37a9ec;
        color: #fff;
    }

    .tier-3 {
        transform: translateZ(100px);
        background: rgba(0, 0, 0, 0.49);
        display: flex;
        justify-content: center;
        align-items: baseline;
        color: #fff;
    }

    .tier-4 {
        transform: translateZ(150px);
    }

    .tier-4 .box {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60%;
        height: 20%;
        background: #fff;
        box-shadow: 0 0 10px #000;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .tier-4 .box .foot {
        display: flex;
    }

    .tier-4 .box .foot button {
        flex: 1
    }


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/240784.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号