-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
54 lines (54 loc) · 1.06 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
*
{
margin: 0%;
padding: 0%;
box-sizing: border-box;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: rgba(0, 0, 0, 0.934);
}
.cube
{
position: relative;
width: 250px;
height: 250px;
transform-style: preserve-3d;
animation: animate 4s linear infinite;
}
@keyframes animate {
0% {
transform: rotateX(30deg) rotateY(0deg);
}
100%{
transform: rotateX(-360deg) rotateY(360deg);
}
}
.cube div{
position: absolute;
top: 0;
left: 0;
width: 70%;
height: 70%;
transform-style: preserve-3d;
}
.cube div span{
position:absolute;
top: 0;
left: 0;
width: 50%;
height: 50%;
background: linear-gradient(black,rgb(238, 42, 42));
transform: rotateY(calc(90deg*var(--i))) translateZ(150px);
}
h1{
font-size: xx-large;
color: rgb(254, 254, 254);
z-index: 9;
justify-content: center;
align-items: center;
font-style:italic;
}