-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
128 lines (104 loc) · 2.07 KB
/
style.css
File metadata and controls
128 lines (104 loc) · 2.07 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
font-style: bold;
/* font-family: 'Roboto',sans-serif; */
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #fbe9e7;
}
.card{
position: relative;
width: 300px;
height: 400px;
background-color: #fff;
transform-style: preserve-3d;
transform: perspective(1000px);
box-shadow: 10px 20px 40px rgba(0,0,0,0.25);
transition: 1s;
}
.card:hover{
transform: translateX(50%);
}
.card .imgBox
{
position: relative;
width: 100%;
height:100%;
z-index: 1;
transform-origin: left;
transform-style: preserve-3d;
background: #000;
transition: 1s;
box-shadow: 10px 20px 40px rgba(0,0,0,0.25);
}
.card:hover .imgBox{
transform: rotateY(-180deg);
}
.card .imgBox img{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transform-style: preserve-3d;
backface-visibility: hidden;
}
.card .imgBox img:nth-child(2){
transform: rotateY(-180deg);
}
.card .details{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
}
.card .details .content{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.card .details .content h2{
text-align: center;
font-weight: 700;
line-height: 1em;
}
.card .details .content h2 span{
color: #e21212;
font-size: 0.8em;
}
.card .details .content .social-icons{
position: relative;
display: flex;
margin-top: 10px;
}
.card .details .content .social-icons a{
display: inline-block;
width: 35px;
height: 35px;
background: #333;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
text-decoration: none;
margin: 5px;
font-size: 18px;
transition: 0.2s;
}
.card .details .content .social-icons a:hover{
background: #e21212;
}