"Different types of hover and transition effect."
Bootstrap 4.1.1 Snippet by kinaljain

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">
<h1 class="head">Different types of hover effect</h1>
<h2 class="zoom">zoom in#1</h2>
<div class="col-sm-6">
<div class="img_section">
<figure><img src="http://i3.wp.com/ytimg.googleusercontent.com/vi/g9Is-3fTh7Q/mqdefault.jpg"></figure>
</div>
</div>
<div class="col-sm-6">
<div class="img_section">
<figure><img src="https://i.ytimg.com/vi/v7U78sJxAQk/mqdefault.jpg"></figure>
</div>
</div>
</div>
<div class="row">
<h2 class="zoom_in">zoom in#2</h1>
<div class="col-sm-6">
<div class="img_section2">
<figure><img src="http://i3.wp.com/ytimg.googleusercontent.com/vi/g9Is-3fTh7Q/mqdefault.jpg"></figure>
</div>
</div>
<div class="col-sm-6">
<div class="img_section2">
<figure><img src="https://i.ytimg.com/vi/v7U78sJxAQk/mqdefault.jpg"></figure>
</div>
</div>
</div>
<div class="row">
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
h1.head {
text-align: center;
font-size: 26px;
}
.img_section figure img {
transform: scale(1);
transition: .3s ease-in-out;
height: 300;
width: 200;
}
.img_section figure:hover img {
transform: scale(1.3);
}
h2.zoom {
padding-bottom: 33px;
padding-left: 25px;
}
.img_section2 figure img {
width: 300px;
height: auto;
transition: .3s ease-in-out;
}
.img_section2:hover figure img{
width: 350px;
}
.img_section3 figure img{
margin-left: 30px;
width: 300px;
transition: .3s ease-in-out;
}
.img_section3:hover figure img{
margin-left: 0;
}
.img_section4 figure img{
transform: scale(1);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: