Free bootstrap photo gallery snipp with image slider

Download free bootstrap photo gallery snipp with image slider with text on bottom, you can use this on middle of your web page, simple div structure easy to implement.




<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.css">
<link rel="stylesheet" href="css/light-box.css">
<title>Bootstrap photo gallery snipp</title>
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
body {
    font-family: 'Roboto', sans-serif;
}
.btn {
    padding: 14px 26px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.btn-danger {
    background-color: #e34c43;
    border-color: #e34c43;
}
</style>
</head>

<body>
<div class="container py-5">
  <div class="row py-5">
    <div class="col-12 text-center">
      <h2 class="h1 pb-1">Photo gallery slider with image lightbox</h2>
      <p class="mb-5 text-muted">Lost the plot cracking goal give us a bell is bog horse.</p>
    </div>
    <div class="col-12 gallery-two owl-carousel owl-theme">
      <div class="text-center"> <a href="img/content-demo-four.jpg" data-toggle="lightbox" data-gallery="example-gallery"> <img src="img/content-demo-four.jpg" class="img-fluid rounded"> </a> 
      
      <h5 class="mb-3 mt-4">Gallery Image Title</h5>
      <p class="text-muted">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam aliquam, ante vitae semper pulvinar, </p>
      
      </div>
      <div class="text-center"> <a href="img/content-demo-seven.jpg" data-toggle="lightbox" data-gallery="example-gallery"> <img src="img/content-demo-seven.jpg" class="img-fluid rounded"> </a> 
          <h5 class="mb-3 mt-4">Gallery Image Title</h5>
      <p class="text-muted">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam aliquam, ante vitae semper pulvinar, </p>
      
      </div>
      <div class="text-center"> <a href="img/content-demo-six.jpg" data-toggle="lightbox" data-gallery="example-gallery"> <img src="img/content-demo-six.jpg" class="img-fluid rounded"> </a> 
          <h5 class="mb-3 mt-4">Gallery Image Title</h5>
      <p class="text-muted">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam aliquam, ante vitae semper pulvinar, </p>
      
      </div>
      <div class="text-center"> <a href="img/content-demo-two.jpg" data-toggle="lightbox" data-gallery="example-gallery"> <img src="img/content-demo-two.jpg" class="img-fluid rounded"> </a> 
      
          <h5 class="mb-3 mt-4">Gallery Image Title</h5>
      <p class="text-muted">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam aliquam, ante vitae semper pulvinar, </p>
      </div>
    </div>
    <div class="col-12 text-center mt-5"> <a href="#" class="btn btn-danger btn-lg">call to action</a> </div>
  </div>
</div>

<!-- Optional JavaScript --> 
<!-- jQuery first, then Popper.js, then Bootstrap JS --> 
 <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" ></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" ></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" ></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.js"></script>  
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.js"></script> 
<script>
$('.gallery-two').owlCarousel({
    loop:false,
    margin:10,
    nav:false,
    dots:true,
    responsive:{
        0:{
            items:1
        },
        600:{
            items:2
        },
        1000:{
            items:2
        }
    }
})
$(document).on('click', '[data-toggle="lightbox"]', function(event) {
                event.preventDefault();
                $(this).ekkoLightbox();
            });
</script>
</body>
</html>
Spread the love

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top