-
Notifications
You must be signed in to change notification settings - Fork 0
/
edu.css
45 lines (44 loc) · 858 Bytes
/
edu.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
.card
{
margin-left: 25vw;
margin-bottom:25vh;
width:50%;
height:50vh;
border:1px solid black;
/* position:absolute; */
/* left:50%;
top:50%;
margin:-150px; */
perspective:100vw;
}
.content
{
width:100%;
height:100%;
/* position:absolute; */
transition: transform 1s;
transform-style: preserve-3d;
}
.card:hover .content
{
transform: rotateY(180deg);
}
.front,.back
{
width:100%;
height:100%;
position:absolute;
background:linear-gradient(gray,white,rgb(88, 84, 84));
/* ,#0ff,#fff,#f0f,#0ff */
/* color:tomato; */
backface-visibility: hidden;
/* line-height: 50vh; */
text-align:center;
}
.back
{
/*background: tomato;
color:#fff; */
transform:rotateY(180deg);
backface-visibility: hidden;
}