-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
72 lines (72 loc) · 1.18 KB
/
style.css
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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-color: #000000;
}
.wrapper {
border: 1px solid #ffffff;
height: 300px;
width: 300px;
position: absolute;
margin: auto;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
.container {
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
perspective: 800px;
perspective-origin: 50%;
}
.image-cube {
width: 300px;
height: 300px;
transform-style: preserve-3d;
position: relative;
transition: 2s;
}
.image-cube div {
height: 300px;
width: 300px;
position: absolute;
}
img {
width: 100%;
transform: translateZ(0);
}
.front {
transform: translateZ(150px);
}
.right {
transform: rotateY(-270deg) translateX(150px);
transform-origin: 100% 0;
}
.back {
transform: translateZ(-150px) rotateY(180deg);
}
.left {
transform: rotateY(270deg) translateX(-150px);
transform-origin: 0 50%;
}
.btns {
margin-top: 80px;
display: flex;
justify-content: space-between;
}
.btns button {
background-color: transparent;
color: #ffffff;
border: 3px solid #ffffff;
padding: 8px 40px;
border-radius: 30px;
font-size: 20px;
cursor: pointer;
}Enter