-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3dcss1.css
111 lines (86 loc) · 1.86 KB
/
3dcss1.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
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
106
107
108
109
110
111
body{
margin:0;
padding: 0;
font-family: sans-serif;
}
.card{
position: absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);
width: 400px;
height:239px;
background: #262626;
}
.card .imgBox{
position: absolute;
top:0;
left:0;
width: 100%;
height:100%;
transform-origin: bottom;
transition: .5s;
transform: translateY(0) rotateX(0deg);
}
.card:hover .imgBox{
transform: translateY(-100%) rotateX(90deg);
}
.card .details{
position: absolute;
top:0;
left:0;
width: 100%;
height:100%;
background: #262626;
transform-origin: top;
transition: .5s;
box-sizing: border-box;
text-align: center;
padding: 20px;
transform: translateY(100%) rotateX(-90deg);
}
.card:hover .details{
transform: translateY(0) rotateX(0deg);
}
.card .details .content{
position: absolute; /*oper jyga*/
top:50%;
width:100%;
left:0;
transform: translateY(-50%)
}
.card .details .content h3{
color:indigo;
text-transform: uppercase;
}
.card .details .content h3 span{
color:khaki;
text-transform: initial;
text-transform: initial;
}
.card .details .content ul{
margin:0;
padding:0;
display: flex;
width: 100%;
padding:20px 40px;
box-sizing: border-box;
list-style-type: none;
}
.card .details .content ul li{
list-style-type: none;
width:20%;
}
.card .details .content ul li a{
width:36px;
height:25px;
color:#262626;
background-color: #fff;
display: block;
text-align: center;
line-height: 36px;
transition: .5s;
}
.card .details .content ul li a:hover{
background-color: aquamarine;
}