"Banner Hover Effect"
Bootstrap 3.3.0 Snippet by AminulDev

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h1 class="text-center mr10">Banner Hover Effect</h1>
<div class="col-md-4 hidden-sm hidden-xs wrapper-banner">
<a class="banner mr10" href="#"><img src="http://magento2.flytheme.net/themes/sm_smarket/pub/media/wysiwyg/banner/1.jpg" alt=""></a>
</div>
<div class="col-md-4 hidden-sm hidden-xs wrapper-banner">
<a class="banner mr10" href="#"><img src="http://magento2.flytheme.net/themes/sm_smarket/pub/media/wysiwyg/banner/2.jpg" alt=""></a>
</div>
<div class="col-md-4 hidden-sm hidden-xs wrapper-banner">
<a class="banner mr10" href="#"><img src="http://magento2.flytheme.net/themes/sm_smarket/pub/media/wysiwyg/banner/3.jpg" alt=""></a>
</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
.mr10 {
margin-bottom: 10px;
}
.banner {
display: block;
overflow: hidden;
position: relative;
transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-webkit-transition: all 0.3s ease;
}
.banner:before {
background: rgba(0, 0, 0, 0.5) url(http://magento2.flytheme.net/themes/sm_smarket/pub/static/frontend/Sm/smarket/en_US/images/iconbr.png) no-repeat scroll center center;
content: '';
height: 100%;
left: 0;
opacity: 0;
-moz-opacity: 0;
-webkit-opacity: 0;
position: absolute;
top: 0;
transform: scale(0.5) rotateY(180deg);
-moz-transform: scale(0.5) rotateY(180deg);
-webkit-transform: scale(0.5) rotateY(180deg);
-ms-transform: scale(0.5) rotateY(180deg);
transition: all 0.4s ease-in-out 0s;
-moz-transition: all 0.4s ease-in-out 0s;
-webkit-transition: all 0.4s ease-in-out 0s;
visibility: hidden;
width: 100%;
z-index: 9;
}
.banner:hover:before {
transform: scale(1) rotateY(0deg);
-moz-transform: scale(1) rotateY(0deg);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: