-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
105 lines (88 loc) · 2.76 KB
/
Copy pathindex.html
File metadata and controls
105 lines (88 loc) · 2.76 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
<link rel="stylesheet" href="./main/css/style.css" />
<div class="scene">
<div class="cube">
<div class="cube__face cube__face--left"></div>
<div class="cube__face cube__face--right"></div>
<div class="cube__face cube__face--top"></div>
<div class="cube__face cube__face--bottom"></div>
<div class="cube__face cube__face--front"></div>
<div class="cube__face cube__face--back"></div>
</div>
</div>
<div class="text">
<p>coming soon, for now, enjoy this grass block</p>
<p>if you want to see the unfinished website</p>
<p>click the button below</p>
<main class="button-wrapper"> <a href="main/index.html">
<div class="button"><span>take me to the shadow realm</span></div></a>
</div>
<style>
html, body {
height: 100%;
background: #000;
}
.scene {
width: 100%;
height: 100%;
perspective: 400px;
display: flex;
justify-content: center;
align-items: center;
}
.cube {
position: center;
width: 10%;
height: 10%;
transform-style: preserve-3d;
animation: rotation 10s infinite alternate;
}
.text {
position: absolute;
top: 320px;
left: 10px
}
@keyframes rotation {
0% { transform: rotateY(0deg) rotateX(0deg); }
100% { transform: rotateY(720deg) rotateX(60deg); }
}
.cube__face {
position: absolute;
width: 200px;
height: 200px;
}
.cube__face--left {
background-image: url('https://uploaddeimagens.com.br/images/000/955/232/full/side.jpg?1497835464');
transform: translateX(-100px) rotateY(90deg);
}
.cube__face--right {
background-image: url('https://uploaddeimagens.com.br/images/000/955/232/full/side.jpg?1497835464');
transform: translateX(100px) rotateY(90deg);
}
.cube__face--bottom {
background-image: url('https://uploaddeimagens.com.br/images/000/955/231/full/bottom.jpg?1497835434');
transform: translateY(100px) rotateX(90deg);
}
.cube__face--top {
background-image: url('https://uploaddeimagens.com.br/images/000/955/233/thumb/top.jpg?1497835487');
transform: translateY(-100px) rotateX(90deg);
}
.cube__face--back {
background-image: url('https://uploaddeimagens.com.br/images/000/955/232/full/side.jpg?1497835464');
transform: translateZ(-100px);
}
.cube__face--front {
background-image: url('https://uploaddeimagens.com.br/images/000/955/232/full/side.jpg?1497835464');
transform: translateZ(100px);
}
</style>
<script>
function addRow(classnamey, innerhtmly) {
const div = document.createElement('div');
div.className = classnamey;
div.innerHTML = innerhtmly;
document.getElementById('content').appendChild(div);
}
function removeRow(input) {
document.getElementById('content').removeChild(input.parentNode);
}
</script>