"Light Click Gallery"
Bootstrap 4.1.1 Snippet by ravi7284007

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 ---------->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.10.0/css/lightgallery.min.css" integrity="sha512-gk6oCFFexhboh5r/6fov3zqTCA2plJ+uIoUx941tQSFg6TNYahuvh1esZVV0kkK+i5Kl74jPmNJTTaHAovWIhw==" crossorigin="anonymous" />
<div class="container">
<h3 class="wow fadeInLeft text-center mt-5">Light Gallery</h3>
<ul id="" class="list-unstyled row lightgallery">
<li class="col-md-3" data-src="https://picsum.photos/500/500">
<img class="img-responsive" src="https://picsum.photos/500/500">
</li>
<li class="col-md-3" data-src="https://picsum.photos/501/500">
<img class="img-responsive" src="https://picsum.photos/501/500">
</li>
<li class="col-md-3" data-src="https://picsum.photos/502/500">
<img class="img-responsive" src="https://picsum.photos/502/500">
</li>
<li class="col-md-3" data-src="https://picsum.photos/503/500">
<img class="img-responsive" src="https://picsum.photos/503/500">
</li>
<li class="col-md-3" data-src="https://picsum.photos/504/500">
<img class="img-responsive" src="https://picsum.photos/504/500">
</li>
<li class="col-md-3" data-src="https://picsum.photos/505/500">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
ul.list-unstyled.row.lightgallery li {
padding: 5px;
}
ul.list-unstyled.row.lightgallery {
margin-top: 50px;
}
img{
max-width:100%;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
jQuery(document).ready(function() {
jQuery('.lightgallery').lightGallery();
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: