"Simple Bootstrap Product Card Design"
Bootstrap 4.1.1 Snippet by yusufsulemani

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">
<div class="col-sm-4">
<figure>
<img src="https://picsum.photos/id/645/635/475" class="img-fluid" alt="img01">
<figcaption>
<h3>Product 01</h3>
<span>Yusuf</span>
<a href="#">Buy</a>
</figcaption>
</figure>
</div>
<div class="col-sm-4">
<figure>
<img src="https://picsum.photos/id/393/635/475" class="img-fluid" alt="img02">
<figcaption>
<h3>Product 02</h3>
<span>Yusuf</span>
<a href="#">Buy</a>
</figcaption>
</figure>
</div>
<div class="col-sm-4">
<figure>
<img src="https://picsum.photos/id/985/635/475" class="img-fluid" alt="img03">
<figcaption>
<h3>Product 03</h3>
<span>Yusuf</span>
<a href="#">Buy</a>
</figcaption>
</figure>
</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
figure {
margin: 0;
position: relative;
}
figure img {
max-width: 100%;
display: block;
position: relative;
z-index: 10;
-webkit-transition: -webkit-transform 0.4s;
-moz-transition: -moz-transform 0.4s;
transition: transform 0.4s;
}
figure:hover img {
-webkit-transform: scale(0.4);
-moz-transform: scale(0.4);
-ms-transform: scale(0.4);
transform: scale(0.4);
}
figure:hover figcaption {
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
opacity: 1;
}
figure a {
position: absolute;
bottom: 20px;
right: 20px;
}
figcaption {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: