forked from Dezenix/frontend-html-css-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
53 lines (46 loc) · 885 Bytes
/
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
html {
background-color: #000000;
font-size: 10rem;
box-sizing: border-box;
}
.container {
margin-top: 12vh;
display: flex;
justify-content: center;
}
.card {
width: 300px;
height: 400px;
perspective: 600px;
background-color: transparent;
}
.card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
animation: rotate 5s linear forwards infinite;
transform-style: preserve-3d;
}
.card-fs,
.card-bs {
width: 100%;
height: 100%;
position: absolute;
backface-visibility: hidden;
}
.card-fs {
background-color: rgb(147, 134, 218);
}
.card-bs {
background-color: rgb(33, 224, 147);
transform: rotateY(180deg);
}
@keyframes rotate {
from {
transform: rotateY(0deg);
}
to {
transform: rotateY(360deg);
}
}