"Hover effect"
Bootstrap 4.1.1 Snippet by imsachin

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 ---------->
<!DOCTYPE html>
<html lang="en">
<head>
<title>HTML</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!--[if IE]> <link href="~/Content/NewHomePage/all-ie-only.css" rel="stylesheet" /> <![endif]-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Popular Holidays -->
<div class="container-fluid popHoliday">
<div class="row">
<div class="container">
<div class="row">
<div class="col-xs-12">
<h2 class="headings mrT20"> Popular Holidays </h2>
<p class="text-center"> Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tenetur animi, suscipit totam et porro repellat minima quibusdam optio sit incidunt rem! Necessitatibus obcaecati inventore eaque facere reiciendis ut repudiandae impedit. </p>
</div>
</div>
<div class="row">
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="popHBoxWrap">
<img src="https://bestjquery.com/tutorial/hover-effect/demo147/images/img-2.jpg" alt="Image" title="Project" class="img-responsive width100">
<div class="popHBox">
<h5> London Holidays </h5>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* -- Popular Holidays -- */
.popHoliday {margin: 10px 0;}
.popHoliday .headings {text-align: center;color: #ff3d00;margin-bottom: 20px;font-weight: 600;}
.popHoliday .popHBoxWrap {position: relative;overflow: hidden; margin-bottom: 30px;}
.popHoliday .popHBoxWrap img {height: 280px;}
.popHoliday .popHBoxWrap .popHBox {text-align: center; width: 100%;position: absolute;left: 50%;top: 80%; transition: all ease 3s;transform: translate(-50%, 15%);}
.popHoliday .popHBoxWrap .popHBox h5 {font-size: 26px; font-weight: 600;margin-top: 0px; color: #fff; text-shadow: -4px 2px 2px #000000;}
.popHoliday .popHBoxWrap .popHBox .btn {padding: 8px 15px;}
.popHoliday .popHBoxWrap:hover .popHBox {top: 50%;transform: translate(-50%, -50%);transition: all ease 1s;}
/* -- Top Destinations -- */
.topDest {margin: 10px 0;}
.topDest .headings {text-align: center;color: #ff3d00;margin-bottom: 20px;font-weight: 600;}
.topDest a.destLinks {text-decoration: none;color: #000;}
.topDest .destiBoxWrap {position: relative;overflow: hidden; height: 285px;border-bottom: 1px solid #d5e5ff;margin-bottom: 30px;}
.topDest .destiBoxWrap .destiBox {text-align: center;padding: 20px 10px;background-color: #fff; width: 90%; position: absolute;left: 5%; top: 70%;transition: all ease 3s;}
.topDest .destiBoxWrap .destiBox h4 {font-size: 26px; font-weight: 600;margin-top: 0px; color: #012b72;}
.topDest .destiBoxWrap .destiBox h5 {font-size: 18px; font-weight: 500;}
.topDest .destiBoxWrap .destiBox p {line-height: 25px;}
.topDest .destiBoxWrap .destiBox .btn {padding: 8px 20px;}
.topDest a.destLinks:hover .destiBox {top: 8%;transition: all ease 1s;}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: