wuwei
2025-07-08 4416a04fd4f79e8bbe1f20830c41dc84d21aa994
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
/*body {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    !*height: 100vh;*!*/
/*}*/
 
.clock {
    display: flex;
}
 
.clock .divider {
    color: #6FE621;
    font-size: 48px;
    line-height: 70px;
    font-style: normal;
}
 
.clock .flip {
    position: relative;
    width: 60px;
    height: 70px;
    margin: 2px;
    font-size: 48px;
    line-height: 70px;
    text-align: center;
    background: #141C25;
    border: 1px solid #141C25;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}
 
.clock .flip .digital::before, .clock .flip .digital::after {
    position: absolute;
    content: attr(data-number);
    left: 0;
    right: 0;
    color: #6FE621;
    background: #141C25;
    overflow: hidden;
    -webkit-perspective: 160px;
    perspective: 160px;
}
 
.clock .flip .digital::before {
    top: 0;
    bottom: 50%;
    border-bottom: 1px solid #666;
    border-radius: 10px 10px 0 0;
}
 
.clock .flip .digital::after {
    top: 50%;
    bottom: 0;
    line-height: 0;
    border-radius: 0 0 10px 10px;
}
 
.clock .flip .back::before,
.clock .flip .front::after {
    z-index: 1;
}
 
.clock .flip .back::after {
    z-index: 2;
}
 
.clock .flip .front::before {
    z-index: 3;
}
 
.clock .flip .back::after {
    -webkit-transform-origin: center top;
    transform-origin: center top;
    -webkit-transform: rotateX(0.5turn);
    transform: rotateX(0.5turn);
}
 
.clock .flip.running .front::before {
    -webkit-transform-origin: center bottom;
    transform-origin: center bottom;
    -webkit-animation: frontFlipDown 0.6s ease-in-out;
    animation: frontFlipDown 0.6s ease-in-out;
    box-shadow: 0 -2px 6px rgba(255, 255, 255, 0.3);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
 
.clock .flip.running .back::after {
    -webkit-animation: backFlipDown 0.6s ease-in-out;
    animation: backFlipDown 0.6s ease-in-out;
}
 
@-webkit-keyframes frontFlipDown {
    to {
        -webkit-transform: rotateX(0.5turn);
        transform: rotateX(0.5turn);
    }
}
 
@keyframes frontFlipDown {
    to {
        -webkit-transform: rotateX(0.5turn);
        transform: rotateX(0.5turn);
    }
}
 
@-webkit-keyframes backFlipDown {
    to {
        -webkit-transform: rotateX(0);
        transform: rotateX(0);
    }
}
 
@keyframes backFlipDown {
    to {
        -webkit-transform: rotateX(0);
        transform: rotateX(0);
    }
}