CodePen
codepen.io › kushfels › pen › yLNLBNO
Image Gallery (Bootstrap 4 + Magnific Popup)
$(document).ready(function() { $(".gallery").magnificPopup({ delegate: "a", type: "image", tLoading: "Loading image #%curr%...", mainClass: "mfp-img-mobile", gallery: { enabled: true, navigateByImgClick: true, preload: [0, 1] // Will preload 0 - before current, and 1 after the current image }, image: { tError: '<a href="%url%">The image #%curr%</a> could not be loaded.'
CodePen
codepen.io › nathan-sr › pen › RwqGBEy
Dynamic Image Viewer in Popup Bootstrap Modal
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> <style type="text/css"> /* CSS used here will be applied after bootstrap.css */ @media (min-width: 768px) { .modal-dialog { width: 50%!important; max-width:700px; max-height:80%; margin: 30px auto; } .modal-dialog img { max-height: 80%; } } img { cursor: pointer; } </style> <style> * { box-sizing: border-box; } .colu
Videos
10:03
How to create a modal popup box with Bootstrap 5 | HTML5
08:02
Bootstrap 5 Image Gallery with Popup Modals - YouTube
05:06
How to Make a Photo Lightbox Gallery with Bootstrap - YouTube
14:53
Part 52 - Image Thumbnails and Image Modal Popup - YouTube
15:13
Responsive Image Gallery with Popup using Bootstrap 5 | Coder Uncle ...
08:01
Bootstrap 5 Image Gallery with modal | Responsive - YouTube
CodePen
codepen.io › jhotayex › pen › RaMWVN
Bootstrap link popup image on click
<div class="container"> <div class="row"> <br><br><br> <div class="col-md-3"></div> <div class="col-md-6"> <h1>www.jhotaybd.ml</h1> <a class="" data-toggle="modal" data-target="#popup_img"> Click to see image </a> <!-- popup contain --> <div class="modal fade" id="popup_img" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <div class="modal-dialog" role="document"> <img alt="" src="https://d13yacurqjgara.cloudfront.net/users/141092/screenshots/2379154/never-too-old_1x.jpg"> </div> <div class="col-md-3"></div> </div> </div> </div>
CodePen
codepen.io › dineshncsmg › pen › poKyxGr
Bootstrap 4 Gallery Image Modal Popup With Carousel Slider
<!-- Desktop gallery section starts --> <section class="gallery-section desktop"> <div class="row"> <div class="col-md-3 col-xs-12 padding-zero float-right"> <a href="#matGallery" data-slide-to="0" id="modal_One_gal" ><img src="https://images.unsplash.com/photo-1666649013413-0be5868a337d?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Njc0Njg0MTc&ixlib=rb-4.0.3&q=80" alt="" data-toggle="modal" data-target="#matModal"></a> </div> <div class="col-md-6 col-xs-12 padding-zero float-left"> <a href="#matGallery" data-slide-to="1" id="modal_Two_gal" ><img src="https://ima
CodePen
codepen.io › tag › image popup
Pens tagged 'image popup' on CodePen
CodePen doesn't work very well without JavaScript · We're all for progressive enhancement, but CodePen is a bit unique in that it's all about writing and showing front end code, including JavaScript. It's required to use most of the features of CodePen · Need to know how to enable it?
CodePen
codepen.io › ferhatatagun › pen › NXJNaG
Auto Popup Modal İmage Slider for Bootstrap 3
<div class="modal fade" id="global-modal" role="dialog"> <div class="modal-dialog modal-lg"> <!--Modal Content--> <div class="modal-content"> <div class="modal-header"> <div id="myCarousel" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#myCarousel" data-slide-to="0" class="active"></li> <li data-target="#myCarousel" data-slide-to="1"></li> <li data-target="#myCarousel" data-slide-to="2"></li> </ol> <!-- Wrapper for slides --> <div class="carousel-inner"> <div class="item active"> <img src="https://www.w3schools.com/bootstrap/
CodePen
codepen.io › psyrendust › pen › avrxrm
Bootstrap thumbnail with image popover
// Wait for the web page to be ready $(document).ready(function() { // grab all thumbnails and add bootstrap popovers // https://getbootstrap.com/javascript/#popovers $('[data-toggle="popover"]').popover({ container: 'body', html: true, placement: 'auto', trigger: 'hover', content: function() { // get the url for the full size img var url = $(this).data('full'); return '<img src="' + url + '">' } }); });
CodePen
codepen.io › alidz › pen › MabEaE
image-modal-responsive
This code was written so that you don't have to write multiple modal divs --> <script> $(document).ready(function() { var $lightbox = $('#lightbox'); $('[data-target="#lightbox"]').on('click', function(event) { var $img = $(this).find('img'), src = $img.attr('src'), alt = $img.attr('alt'), css = { 'maxWidth': $(window).width() - 100, 'maxHeight': $(window).height() - 100 }; $lightbox.find('img').attr('src', src); $lightbox.find('img').attr('alt', alt); $lightbox.find('img').css(css); }); $lightbox.on('shown.bs.modal', function (e) { var $img = $lightbox.find('img'); $lightbox.find('.modal-dial
CodePen
codepen.io › RichWebbin › pen › abzaRwj
image popup
<div class="popup"> <img src="http://unsplash.it/400/800?image=123"> <img src="https://unsplash.it/200/800?image=12"> <img src="https://unsplash.it/600/400?image=13"> </div> <div class="show"> <div class="overlay"></div> <div class="img-show"><span>X</span><img src=""></div> </div> <!--End image popup-->
CodePen
codepen.io › ranjith555 › pen › ojVMPz
Bootstrap Popup with design
<h1>Bootstrap Popup with design</h2> <!-- Trigger the modal with a button --> <button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button> <!-- Modal --> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content project-details-popup"> <img class="prof-icon" src="http://a5.mzstatic.com/us/r30/Purple5/v4/5a/2e/e9/5a2ee9b3-8f0e-4f8b-4043-dd3e3ea29766/icon128-2x.png"> <button type="button" class="close" data-dismiss="modal">×</button> <div class="modal-header"> <img class="header-img" src="http://creativefan.com/files/2010/02/12142-fullsize-500x250.jpg"> </div> <div class="modal-body"> <div class="col-md-7"> <h3>About popup</h3> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.
CodePen
codepen.io › JacobLett › pen › QNzVeb
Bootstrap lightbox modal for images
<div class="container"> <div class="page-header"> <h1>Bootstrap single image lightbox</h1> </div><!-- /page-header --> <a href="#" title="Chart Name" class="lightbox" > <img src="http://dummyimage.com/180x180/000/fff" alt="" class="img-responsive img-circle" data-img="http://dummyimage.com/800x200/000/fff"> <h3>Chart Name</h3> <p>#</p> </a> <a href="#" title="Chart Name" class="lightbox" > <img src="http://dummyimage.com/180x180/000/fff" alt="" class="img-responsive img-circle" data-img="http://dummyimage.com/200x200/000/fff"> <h3>Chart Name</h3> <p>#</p> </a> </div>
CodePen
codepen.io › mr_aleks › pen › OpNpoe
Gallery+Modal (bootstrap)
<!-- Добавьте модальное окно после открывающего тега body--> <div class="modal fade" id="image-modal" tabindex="-1" role="dialog"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <div class="modal-title">Просмотр изображения</div> </div> <div class="modal-body"> <img class="img-responsive center-block" src="" alt=""> </div> <div class="modal-footer"> <button type="button" c
CodePen
codepen.io › parkerbw03 › pen › KqVPPV
bootstrap modal image gallery
var modalbody = $(".modal-body").find("img"); var currentimgopen; $(".thumb").click(function() { var imagesrc = $(this).attr('data-src'); var imagetitle = $(this).find("a").attr('title'); //console.log(imagetitle) modalbody.attr("src", imagesrc); modalbody.width("100%"); modalbody.height("auto"); $(".modal-title").html(imagetitle); currentimgopen = $(this); }); $(".icon-right-open").click(function() { var nextthumb = currentimgopen.next(); if (nextthumb.length == 0) { nextthumb = $(".thumb").siblings().first(); var hitlast = true; } console.log(nextthumb.length); var nexttitle = nextthumb.find
CodePen
codepen.io › thecenteno › pen › aJoLXV
Bootstrap Video Modal Popup
<body> <section class="text-center"> <h1>click on image below</h1> <img data-toggle="modal" data-target="#homeVideo" class="img-responsive" src="http://www.gossettmktg.com/video/dangot.png" onclick="playVid()" /> </section> </body< <!-- Home Video Modal --> <div class="modal fade" id="homeVideo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <button type="button" class="btn btn-default" data-dismiss="modal" onclick="pauseVid()">X</button> <div class="embed-responsive embed-responsive-16by9"> <video id="gossVide