-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstyle1.css
More file actions
129 lines (123 loc) · 2 KB
/
style1.css
File metadata and controls
129 lines (123 loc) · 2 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
129
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans:400,700&display=swap');
body
{
margin: 0;
padding: 0;
font-family: 'Josefin Sans', sans-serif;
}
.card
{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
width: 250px;
height: 350px;
transform-style: preserve-3d;
perspective: 600px;
transition: 0.5s;
}
.card .front
{
position: absolute;
top:0;
left: 0;
width: 100%;
height: 100%;
background: #000000;
backface-visibility: hidden;
transform: rotateX(0deg);
transition: 0.5s;
}
.card .front img{
width: auto;
height: 100%;
}
.card:hover .front
{
transform: rotateX(-180deg);
}
.card .back
{
position: absolute;
top:0;
left: 0;
width: 100%;
height: 100%;
background: #000000;
backface-visibility: hidden;
transform: rotateX(180deg);
transition: 0.5s;
}
.card .back:before
{
content: '';
position: absolute;
top: 0;
left: -50%;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
}
.card:hover .back
{
transform: rotateX(0deg);
}
.card .back .details
{
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 0;
width: 100%;
text-align: center;
box-sizing: border-box;
padding: 20px;
}
.card .back .details h2
{
margin: 0;
padding: 0;
font-size: 24px;
color: #fff;
}
.card .back .details h2 span
{
color: #a7a7a7;
font-size: 16px;
}
.social-icons
{
padding: 10px 0;
}
.social-icons a
{
display: inline-block;
width: 36px;
height: 36px;
text-align: center;
background: #262626;
color: #fff;
text-decoration: none;
border-radius: 50%;
transition: 0.5s;
}
.social-icons a .fa
{
line-height: 36px;
}
.social-icons a:hover
{
background: #e91e63;
}
@media (max-width: 700px) {
/* your mobile css version here */
body
{
background-color: #e91e69;
}
.text
{
float: left;
}
}