forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindicator-screen.html
More file actions
117 lines (103 loc) · 2.6 KB
/
indicator-screen.html
File metadata and controls
117 lines (103 loc) · 2.6 KB
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
<link href="/static/fonts/inter/inter.css" rel="stylesheet">
<style>
body {
color: #fff;
font-family: 'Inter UI', sans-serif;
background: transparent;
-webkit-font-smoothing: antialiased;
}
.container {
display: flex;
align-items: center;
flex-direction: row;
}
.text {
font-size: 0.8rem;
width: 100%;
font-weight: 400;
margin-left: 1rem;
}
.cube {
transform: translate(-34px, 15px) scale(0.25, 0.25);
}
.cube,
.cube * {
position: absolute;
width: 6rem;
height: 6rem;
}
.cube .sides * {
box-sizing: border-box;
border: 10px solid rgba(0,0,0,0.7);
border-radius: 8px;
background: rgba(255, 255, 255, 0.6);
}
@keyframes rotate {
0% {
transform: rotateX(-25.5deg) rotateY(45deg);
}
100% {
transform: rotateX(-25.5deg) rotateY(405deg);
}
}
.sides {
animation: rotate 0.8s linear infinite;
animation-fill-mode: forwards;
transform-style: preserve-3d;
transform: rotateX(-25.5deg) rotateY(45deg);
}
.cube .sides .top {
animation: top-animation 3s ease infinite;
animation-delay: 0ms;
transform: rotateX(90deg) translateZ(44px);
animation-fill-mode: forwards;
transform-origin: 50% 50%;
}
.cube .sides .bottom {
animation: bottom-animation 3s ease infinite;
animation-delay: 0ms;
transform: rotateX(-90deg) translateZ(44px);
animation-fill-mode: forwards;
transform-origin: 50% 50%;
}
.cube .sides .front {
animation: front-animation 3s ease infinite;
animation-delay: 100ms;
transform: rotateY(0deg) translateZ(44px);
animation-fill-mode: forwards;
transform-origin: 50% 50%;
}
.cube .sides .back {
animation: back-animation 3s ease infinite;
animation-delay: 100ms;
transform: rotateY(-180deg) translateZ(44px);
animation-fill-mode: forwards;
transform-origin: 50% 50%;
}
.cube .sides .left {
animation: left-animation 3s ease infinite;
animation-delay: 100ms;
transform: rotateY(-90deg) translateZ(44px);
animation-fill-mode: forwards;
transform-origin: 50% 50%;
}
.cube .sides .right {
animation: right-animation 3s ease infinite;
animation-delay: 100ms;
transform: rotateY(90deg) translateZ(44px);
animation-fill-mode: forwards;
transform-origin: 50% 50%;
}
</style>
<div class="container">
<div class="cube">
<div class="sides">
<div class="top"></div>
<div class="right"></div>
<div class="bottom"></div>
<div class="left"></div>
<div class="front"></div>
<div class="back"></div>
</div>
</div>
</div>