-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesign22.html
More file actions
164 lines (161 loc) · 4.09 KB
/
design22.html
File metadata and controls
164 lines (161 loc) · 4.09 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
157
158
159
160
161
162
163
164
<!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>Profile Widget</title>
<script src="https://code.jquery.com/jquery-3.4.1.js"
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
crossorigin="anonymous"></script>
<style>
@import "https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css";
body{
margin:0;
padding:0;
background:#e6ff61;
font-family: arial;
}
.profile{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
width:300px;
height:450px;
background:#fff;
box-sizing: border-box;
border-radius:10px;
overflow:hidden;
box-shadow:0 20px 20px rgba(0,0,0,0.5);
}
.profile img{
width:100%;
}
.profile .view{
position:absolute;
bottom:30px;
left:50%;
transform:translateX(-50%);
margin:0;
padding:10px 10px;
background:#fff;
color:#262626;
border-radius: 15px;
text-transform:uppercase;
text-decoration: none;
font-size:12px;
font-weight:bold;
}
.view:hover{
text-decoration: underline;
}
.details{
height:50%;
width:100%;
background:#fff;
position:absolute;
bottom:30px;
text-align: center;
padding:20px;
box-sizing: border-box;
transition:.5s;
transform:perspective(500px) scale(0);
transform-origin: bottom;
}
.details.active{
bottom:0;
transform:perspective(500px) scale(1);
}
.details h2{
margin:0;
padding:0;
color:#607d8b;
font-size:18px;
text-transform:uppercase;
}
.details h2 span{
font-size:14px;
color:#ccc;
}
.details p{
margin:0;
padding:10px 0 0;
font-size:14px;
color:#aaa;
}
h3{
background:#00bcd4;
color:#fff;
padding:8px 50px;
border-radius:25px;
display:-webkit-inline-box;
cursor: pointer;
}
h3:hover{
opacity:0.7;
}
.details ul{
margin:0;
padding:0;
display:flex;
}
.details ul li{
list-style: none;
font-size:20px;
width:33.3%;
}
.details ul li:nth-child(1) .fa{
color:#3b5998;
}
.details ul li:nth-child(2) .fa{
color:#00aced;
}
.details ul li:nth-child(3) .fa{
color:#dd4b39;
}
.close{
font-size:20px;
position:absolute;
top:5px;
right:5px;
cursor: pointer;
}
.close .fa{
color:#dd4b39;
}
.details ul li .fa:hover{
transform:scale(1.4);
}
</style>
</head>
<body>
<div class="profile">
<img src="sakura.jpg" alt="">
<a href="#" class="view">View Profile</a>
<div class="details">
<h2>Someone Famous<br><span>Naruto Character</span></h2>
<p>Lorem . Aut l quibusdam dolorum molestias recusandae.</p>
<h3>Follow</h3>
<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 class="close">
<i class="fa fa-times-circle" aria-hidden="true"></i>
</div>
</div>
</div>
<script>
$(document).ready(function(){
$(".view").click(function(){
$(".details").addClass("active");
});
$(".close").click(function(){
$(".details").removeClass("active");
});
});
</script>
</body>
</html>