zhangyanpeng
2024-05-29 1f227a1cf627526701c652ba84bae3e430bba8d3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="utf-8"><meta http-equiv="Expires" content="0"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-control" content="no-cache"><meta http-equiv="Cache" content="no-cache">
        <title>3D</title>
        <style>
            /*最外层容器样式*/
            .wrap {
                /* width: 60px; */
                height: 100vh;
                position: relative;
                background-color: #e3e8cc;
                overflow: hidden;
            }
        
            /*包裹所有容器样式*/
            /*设置transform-style: preserve-3d,让其子元素在3D空间呈现*/
            .cube {
                position: absolute;
                /* width: 200px;
                height: 200px; */
                
                left: 50%;
                top: 50%;
                background-color: #6d9329;
                transform-style: preserve-3d;
                transform: rotateX(-0deg) rotateY(-0deg);
                animation: rotate linear 10s infinite;
                /* rotate: 动画名称  linear:均速运动 20s:20秒完成一次 infinite:一直循环*/
                
                /* perspective: 200px; */
            }
            .cube:hover {
                /* 设置动画是否暂停*/
                animation-play-state: paused;
            }
        
            @-webkit-keyframes rotate {
                0% {
                    transform: rotateX(0deg) rotateY(0deg);
                }
        
                100% {
                    transform: rotateX(-360deg) rotateY(-360deg);
                }
            }
        
            /*定义小正方体样式*/
            .cube .in_pic {
                position: absolute;
                left: 50%;
                top: 50%;
                
                width: 200px;
                height: 200px;
                opacity: 0.8;
                transition: all .4s;
            }
            .cube .in_pic:hover {
                cursor: pointer;
                opacity: 1;
            }
        
            .cube .in_front {
                transform: translate(-50%,-50%) rotateY(0deg) translateZ(100px);
            }
        
            .cube .in_back {
                transform: translate(-50%,-50%) rotateY(180deg) translateZ(100px);
            }
        
            .cube .in_left {
                transform: translate(-50%,-50%) rotateY(-90deg) translateZ(100px);
            }
        
            .cube .in_right {
                transform: translate(-50%,-50%) rotateY(90deg) translateZ(100px);
            }
        
            .cube .in_top {
                transform: translate(-50%,-50%) rotateX(90deg) translateZ(100px);
            }
        
            .cube .in_bottom {
                transform: translate(-50%,-50%) rotateX(-90deg) translateZ(100px);
            }
            
            .iframe_1 {
                transform-origin: left top;
                transform:  scale(13%, 13%);
            }
        </style>
    </head>
    <body style="margin: 0px;">
        <div align="center">
            <!-- 外层最大容器 -->
            <div class="wrap">
                <!--包裹所有元素的容器-->
                <div class="cube">
                    Q
                    <!--小正方体 -->
                    <div style="background-color: #02ccae;" class="in_pic in_front">
                        Q1
                        <iframe class="iframe_1" style="width: 100vw; height: 100vh;" frameborder="0" src="../../login.html"></iframe>
                    </div>
                    <div style="background-color: #756fcc;" class="in_pic in_back">
                        Q2
                        <iframe class="iframe_1" style="width: 100vw; height: 100vh;" frameborder="0" src="../../login.html"></iframe>
                    </div>
                    <div style="background-color: #7dc2ec;" class="in_pic in_left">
                        Q3
                        <iframe class="iframe_1" style="width: 100vw; height: 100vh;" frameborder="0" src="../../login.html"></iframe>
                    </div>
                    <div style="background-color: #70cc60;" class="in_pic in_right">
                        Q4
                        <iframe class="iframe_1" style="width: 100vw; height: 100vh;" frameborder="0" src="../../login.html"></iframe>
                    </div>
                    <div style="background-color: #dd4f35;" class="in_pic in_top">
                        Q5
                        <!-- <iframe class="iframe_1" style="width: 100vw; height: 100vh;" frameborder="0" src="../../login.html"></iframe> -->
                    </div>
                    <div style="background-color: #eaea2c;border-radius: 50%;" class="in_pic in_bottom">
                        Q6
                        <!-- <iframe class="iframe_1" style="width: 100vw; height: 100vh;" frameborder="0" src="../../login.html"></iframe> -->
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>