-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkotak.css
More file actions
89 lines (77 loc) · 1.59 KB
/
kotak.css
File metadata and controls
89 lines (77 loc) · 1.59 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
body{
/* background: linear-gradient(90deg, #0099FF 0%, #6610f2 100%); */
background-image: url("black2.png");
background-repeat: no-repeat;
/* background-color: #0b0c10; */
font-family: "Helvetica", Times, serif;
}
* {
box-sizing: border-box;
}
h1{
color: white;
margin-bottom: 40px;
}
input{
margin-bottom: 40px;
}
.tengah{
position: fixed; /* or absolute */
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.container{
width: 220px;
height: 220px;
perspective: 660px;
}
.cube{
position: relative;
width: 220px;
height: 220px;
transform-style: preserve-3d;
transition: transform 0.5s;
/* cursor: pointer; */
}
/* .cube:hover{
transform: rotateY(-270deg);
transform: rotateX(-90deg);
} */
.cube-side{
display: flex;
align-items: center;
justify-content: center;
width: 220px;
height: 220px;
position: absolute;
color: #fff;
font-size: 5vmin;
/* box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.25); */
border: 2px solid rgba(255,255,255,0.5);
background-color: rgba(92, 219,149, 0.75);
}
.front{
transform: rotateX(0deg) translate3d(0, 0, 110px);
/* background: blue; */
}
.back{
transform: rotateY(180deg) translate3d(0,0,110px);
/* background: #324376; */
}
.right{
transform: rotateY(90deg) translate3d(0,0,110px);
/* background: #f68e5f; */
}
.left{
transform: rotateY(-90deg) translate3d(0,0,110px);
/* background: #f5dd90; */
}
.top{
transform: rotateX(90deg) translate3d(0,0,110px);
/* background: #f5dd90; */
}
.bottom{
transform: rotateX(-90deg) translate3d(0,0,110px);
/* background: #f5dd90; */
}