-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
85 lines (84 loc) · 1.56 KB
/
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
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
* {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
display: grid;
height: 100%;
place-items: center;
background: linear-gradient(#00c6ff, #0072ff, #00c6ff);
}
.wrapper {
height: 400px;
width: 320px;
position: relative;
transform-style: preserve-3d;
padding: 5px;
transition: transform 0.7s ease-in-out;
}
.wrapper:hover {
transform: rotateY(180deg);
}
.wrapper .photo {
height: 100%;
width: 100%;
position: absolute;
background: #fff;
border-radius: 10px;
backface-visibility: hidden;
}
.wrapper .photo img {
height: 100%;
width: 100%;
object-fit: cover;
border-radius: 10px;
}
.wrapper .back img {
height: 150px;
width: 150px;
border-radius: 50%;
padding: 7px;
background: linear-gradient(#00c6ff, #0072ff, #00c6ff);
}
.wrapper .back {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
position: absolute;
height: 100%;
width: 100%;
background: #fff;
border-radius: 10px;
backface-visibility: hidden;
transform: rotateY(180deg);
}
.wrapper .back .info {
text-align: center;
}
.wrapper .back .info .title {
font-size: 30px;
font-weight: 500;
}
.back ul {
display: flex;
}
.back ul a {
height: 40px;
width: 40px;
background: linear-gradient(#00c6ff, #0072ff, #00c6ff);
text-align: center;
line-height: 40px;
margin: 0 5px;
border-radius: 50%;
display: inline-block;
color: white;
text-decoration: none;
}
.back ul a:hover {
background: none;
color: #0072ff;
border: 2px solid #0072ff;
}