"Text Hover on image "
Bootstrap 3.3.0 Snippet by rajuprdp

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<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 ---------->
Text Hover on image
<div class="col-xs-12 col-sm-6 col-md-3 col-lg-6">
<a class="list-quotes" href="/">
<!-- Recommended size 360X360 -->
<img class='img-responsive' alt="img" src="https://img.sheroes.in/img/uploads/article/high_res/Woman-Traveling-Alone-1-1000x500.jpg">
<div class="quotes">
<h1>Lorem ipsum dolor</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. <span>...Read More</span>
</p>
</div>
</a>
</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
/*Main style*/
.list-quotes {
cursor: pointer;
height: auto;
margin-bottom: 30px;
overflow: hidden;
position: relative;
display: block;
border-bottom: 1px solid blue;
}
.list-quotes img,
.list-quotes h1 {
-webkit-transition: -webkit-transform 0.35s;
transition: transform 0.35s;
}
.list-quotes img {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.list-quotes h1{
background: rgba(20,31,44,0.8);
bottom: 30px;
float: right;
color: #fff;
font-size: 14px;
font-weight: bold;
padding: 15px;
position: absolute;
margin: 0;
}
.list-quotes p {
position: absolute;
bottom: -1px;
left: 0;
right: 0;
margin: 0;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: