"Attractive Portfolio section "
Bootstrap 4.1.1 Snippet by Naveen Mandwariya

<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 ----------> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <section id="portfolio" > <div class="container-fluid"> <div class="row"> <div class="col-lg-2 col-md-2"> <div class="img-box side-image-box"> <a href="javascript:void(0);" class="portfolio-link" data-heading="Lorem ipsum dolor sit amet" data-content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."><img src="https://i.ibb.co/b5gRcbC/11-pm-curfew-means-party-hearty-mumbai-may-settle-for-a-quiet-dinner-on-nye.jpg" class="img-fluid"></a> </div> <div class="img-box side-image-box "> <a href="javascript:void(0);" class="portfolio-link" data-heading="Lorem ipsum dolor sit amet" data-content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."><img src="https://i.ibb.co/YLgDw8Y/BUMBLECHRISTMAS-201912130457283.jpg" class="img-fluid"></a> </div> <div class="img-box side-image-box "> <a href="javascript:void(0);" class="portfolio-link" data-heading="Lorem ipsum dolor sit amet" data-content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."><img src="https://i.ibb.co/Sv7FHz3/christmas-parties.jpg" class="img-fluid"></a> </div> <div class="img-box side-image-box "> <a href="javascript:void(0);" class="portfolio-link" data-heading="Lorem ipsum dolor sit amet" data-content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."><img src="https://i.ibb.co/6mbSjLx/getty-614867390-321301.jpg" class="img-fluid"></a> </div> </div> <div class="col-lg-8 col-md-8"> <div id="portfolio_info_box" class="portfolio-info-box"> <div class="img-box"> <img src="https://i.ibb.co/xsj1FCx/MV5-BZTlh-Nj-M0-Ym-Mt-ZWIy-Mi00-MGY4-LTky-Zm-It-ZGY5-MTJi-Yjgy-MGQz-Xk-Ey-Xk-Fqc-Gde-QXVy-MTE2-Nj-Ez.jpg" class="img-fluid"> </div> <div class="portfolio-info text-center"> <h3 class="portfolio-heading"> Lorem ipsum dolor sit amet </h3> <div class="portfolio-content"><p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </p></div> </div> </div> </div> <div class="col-lg-2 col-md-2"> <div class="img-box side-image-box active"> <a href="javascript:void(0);" class="portfolio-link" data-heading="Lorem ipsum dolor sit amet" data-content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."><img src="https://i.ibb.co/9Z0V8vn/new-1.jpg" class="img-fluid"></a> </div> <div class="img-box side-image-box "> <a href="javascript:void(0);" class="portfolio-link" data-heading="Lorem ipsum dolor sit amet" data-content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."><img src="https://i.ibb.co/vqdQPfn/maxresdefault.jpg" class="img-fluid"></a> </div> <div class="img-box side-image-box "> <a href="javascript:void(0);" class="portfolio-link" data-heading="Lorem ipsum dolor sit amet" data-content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."><img src="https://i.ibb.co/DbtKSfG/pic.gif" class="img-fluid"></a> </div> <div class="img-box side-image-box "> <a href="javascript:void(0);" class="portfolio-link" data-heading="Lorem ipsum dolor sit amet" data-content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."><img src="https://i.ibb.co/1GS56jR/PRI-213937026.jpg" class="img-fluid"></a> </div> <div class="img-box side-image-box "> <a href="javascript:void(0);" class="portfolio-link" data-heading="Lorem ipsum dolor sit amet" data-content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."><img src="https://i.ibb.co/2nBYzk4/download.jpg" class="img-fluid"></a> </div> </div> </div> </div> </section>
#portfolio .img-box { margin-bottom: 1rem; } .img-box { position: relative; } .img-box.side-image-box img { height: 165px; object-fit: cover; width: 100%; } div#portfolio_info_box .img-box { text-align: center; } div#portfolio_info_box .img-box img { width: 70%; margin: 0 auto; } .portfolio-info.text-center { width: 70%; margin: 0 auto; } .text-center { text-align: center!important; } .img-box.side-image-box.active { display: none; }
$('#portfolio .portfolio-link img').on('click', function() { var isrc=$(document).find('#portfolio_info_box').find('img').attr('src'); $('#portfolio_info_box .img-box img').prop('src', this.src); $(this).attr('src',isrc); }); $('#portfolio .portfolio-link').on('click', function() { var phead = $(this).data('heading'); var pcon = $(this).data('content'); jQuery(document).find('.portfolio-heading').text(phead); jQuery(document).find('.portfolio-content').text(pcon); });

Related: See More


Questions / Comments: