Sascha Schulz
2024-06-03 410e98d4e81ac6d1fe9cf4bf4043f0db3731462b
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
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <style>
            * {
                box-sizing: border-box;
            }
 
            body {
                width: 200px;
                height: 200px;
 
                perspective: 1000px;
            }
 
            .cube {
                position: relative;
 
                width: 100%;
                height: 100%;
 
                transform-style: preserve-3d;
 
                transition: transform 1s;
            }
 
            .cube div {
                display: flex;
                align-items: center;
                justify-content: center;
 
                font-size: 25px;
 
                width: 200px;
                height: 200px;
 
                border: 1px solid black;
 
                backface-visibility: hidden;
            }
 
            .top {
            
            }
 
            .bottom {
            
            }
 
            .left {
            
            }
 
            .right {
            
            }
 
            .front {
            
            }
 
            .back {
            
            }
        </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>