"Notification"
Bootstrap 4.1.1 Snippet by RajeshKunche

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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h2 class="center">Notification with viwe list when hover the bell icon</h2>
<div class="box">
<div class="notifications">
<i class="fa fa-bell"></i>
<span class="num">4</span>
<ul>
<li class="icon">
<span class="icon"><i class="fa fa-user"></i></span>
<span class="text">Someone Like Your Post</span>
</li>
<li class="icon">
<span class="icon"><i class="fa fa-user"></i></span>
<span class="text">Someone Like Your Photo</span>
</li>
<li class="icon">
<span class="icon"><i class="fa fa-user"></i></span>
<span class="text">Someone Dislike Your Post</span>
</li>
<li class="icon">
<span class="icon"><i class="fa fa-user"></i></span>
<span class="text">Someone Comment on Your Post</span>
</li>
</ul>
</div>
</div>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
body {
margin:0px;
padding:0px;
background:#d60049;
}
.box {
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-80%);
}
.notifications {
width:60px;
height:60px;
background:#fff;
border-radius:30px;
box-sizing:border-box;
text-align:center;
box-shadow:0 2px 5px rgba(0,0,0,.2);
}
.notifications:hover {
width:300px;
height:60px;
text-align:left;
padding:0 15px;
background:#ff2c74;
transform:translateY(-100%);
border-bottom-left-radius:0;
border-bottom-right-radius:0;
}
.notifications:hover .fa {
color:#fff;
}
.notifications .fa {
color:#cecece;
line-height:60px;
font-size:20px;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: