-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesign27.html
More file actions
156 lines (150 loc) · 3 KB
/
design27.html
File metadata and controls
156 lines (150 loc) · 3 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Image Hover Profile Card </title>
<style>
@import "https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css";
*{
margin:0;
padding:0;
}
body{
background:#ebcbbc;
font-family:sans-serif;
}
.wrapper{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
}
.img-container{
width:330px;
height:330px;
position:relative;
border-radius:50%;
cursor:pointer;
overflow: hidden;
}
.img-container img{
width:100%;
height:100%;
border-radius:50%;
}
.slider{
position:absolute;
top:-250px;
left:250px;
background:#2a2642;
width:100%;
height:100%;
border-radius:50%;
opacity:0.8;
transition:all 1s ease;
}
.caption{
position:absolute;
top:-60px;
left:40px;
text-align:center;
color:#fff;
}
.caption h1{
font-size:30px;
font-weight: 900;;
}
.caption span{
font-size: 15px;
}
.share{
position:absolute;
bottom:400px;
left:40px;
}
.share ul{
list-style-type: none;
width:260px;
}
.share ul li{
width:50px;
padding:20px 10px;
border-radius:50%;
float:left;
text-align:center;
border:3px solid #fff;
margin:0 5px;
transition:all 1s ease;
}
.share .fa{
color:#fff;
font-size:24px;
transition:all 1s ease;
}
.share ul li:hover{
background:#fff;
transition:all 1s ease;
}
.share ul li:hover .fa{
color:#2a2642;
opacity:0.8;
}
.img-container:hover .slider{
top:0;
left:0;
transition:all 1s ease;
}
.img-container:hover .caption{
animation:caption 1s ease 1s forwards;
}
.img-container:hover .share{
animation:share 1s ease 2s forwards;
}
@keyframes caption {
0%{
top:0px;
opacity:0;
}
50%{
top:30px;
opacity:0;
}
100%{
top:80px;
opacity:1;
}
}
@keyframes share {
0%{
bottom:150px;
opacity:0;
}
100%{
bottom:80px;
opacity:1;
}
}
</style>
</head>
<body>
<div class="wrapper">
<div class="img-container">
<img src="cast1.jpg" alt="">
<div class="slider"></div>
<div class="caption">
<h1>Riannaa Jennifd</h1>
<span>American Model</span>
</div>
<div class="share">
<ul>
<li><a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li>
</ul>
</div>
</div>
</div>
</body>
</html>