Sascha Schulz
2024-07-08 fc91ffd64c79a0fa8f35e7849e06fe2c825b8c81
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
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <style>
            * {
                box-sizing: border-box;
            }
            
            body {
                margin: 0 auto;
                
                width: 100px;
                height: 100px;
                
                perspective: 5000px;
            }
            
            .cube {
                position: relative;
                
                width: 100%;
                height: 100%;
 
                transform-style: preserve-3d;
                
                transition: transform 1s;
                
                animation-name: spin;
                animation-duration: 3s;
                animation-iteration-count: infinite;
            }
            
            @keyframes spin {
                0% {
                    transform: rotateY(0deg);
                }
                
                100% {
                    transform: rotateY(360deg);
                }
            }
            
            .cube div {
                display: flex;
                align-items: center;
                justify-content: center;
                
                font-size: 25px;
                
                width: 100px;
                height: 100px;
                
                position: absolute;
                
                border: 1px solid white;
 
                backface-visibility: hidden;
                
                color: white;
            }
            
            .top {
                transform: rotateX(90deg) translateZ(50px);
            }
 
            .bottom {
                transform: rotateX(-90deg) translateZ(50px);
            }
 
            .left {
                transform: rotateY(-90deg) translateZ(50px);
            }
 
            .right {
                transform: rotateY(90deg) translateZ(50px);
            }
 
            .front {
                transform: rotateY(0deg) translateZ(50px);
            }
 
            .back {
                transform: rotateY(180deg) translateZ(50px);
            }
            
            
        </style>
    </head>
    <body>
        <div class="cube">
            <div class="front">3</div>
            <div class="back">4</div>
            <div class="right">5</div>
            <div class="left">2</div>
            <div class="top">1</div>
            <div class="bottom">6</div>
        </div>
    </body>
</html>