"Всплывающая подпись к картинке при наведении"
Bootstrap 3.3.0 Snippet by ASDAFF

1
2
3
4
5
6
7
8
9
10
11
<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="img_block">
<a href="#" class="content_block"><img src="http://placehold.it/250x250" />
<div class="over_block"></div>
<span>ВАШ ТЕКСТ ЗДЕСЬ :)</span>
</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
.img_block .content_block {
width:250px;
height: 250px;
background:#f6f6f6;
text-align:center;
min-height:250px;
font-family: 'Roboto', sans-serif;
font-weight:400;
border-width: 4px;
border-style: solid;
border-color: #DDDDDD;
box-shadow: 10px 10px 6px -6px #777777;
}
.img_block a.content_block {
display:block;
position: relative;
overflow:hidden;
-moz-transition: all .4s;
-webkit-transition: all .4s;
-o-transition: all .4s;
transition: all .4s;
cursor:pointer;
}
.img_block a.content_block .over_block {
background-color:rgba(0, 160, 150, 0);
width:100%;
height:100%;
position:absolute;
top:0;
left:0;
z-index: 9900;
-moz-transition:all 1s;
-webkit-transition:all 1s;
-o-transition:all 1s;
transition:all 1s;
}
.img_block a.content_block:hover .over_block {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: