CodePen
codepen.io › JiiB › pen › xgdOjw
Simple Image Gallery with magnific-popup.js
$(document).ready(function(){ $('.image-popup-vertical-fit').magnificPopup({ type: 'image', mainClass: 'mfp-with-zoom', gallery:{ enabled:true }, zoom: { enabled: true, duration: 300, // duration of the effect, in milliseconds easing: 'ease-in-out', // CSS transition easing function opener: function(openerElement) { return openerElement.is('img') ?
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 › niteshgourofficial › pen › XYzGGY
Magnific Popup Image Video Gallery
/* Video Popup*/ jQuery(document).ready(function ($) { // Define App Namespace var popup = { // Initializer init: function() { popup.popupVideo(); }, popupVideo : function() { $('.video_model').magnificPopup({ type: 'iframe', mainClass: 'mfp-fade', removalDelay: 160, preloader: false, fixedContentPos: false, gallery: { enabled:true } }); /* Image Popup*/ $('.gallery_container').magnificPopup({ delegate: 'a', type: 'image', mainClass: 'mfp-fade', removalDelay: 160, preloader: false, fixedContentPos: false, gallery: { enabled:true } }); } }; popup.init($); });
CodePen
codepen.io › JiiB › embed › xgdOjw
CodePen Embed - Simple Image Gallery with magnific-popup.js
$(document).ready(function(){ $('.image-popup-vertical-fit').magnificPopup({ type: 'image', mainClass: 'mfp-with-zoom', gallery:{ enabled:true }, zoom: { enabled: true, duration: 300, // duration of the effect, in milliseconds easing: 'ease-in-out', // CSS transition easing function opener: function(openerElement) { return openerElement.is('img') ? openerElement : openerElement.find('img'); } } }); }); This Pen is owned by Nino on CodePen...
CodePen
codepen.io › michaelleenheer › pen › zYyrKbZ
Photo gallery and pop-up lightbox
<!-- The pop-up --> <div class="show"> <div class="overlay"></div> <div class="img-show"> <span id="close">X</span> <img src=""> <div id="caption"></div> </div> </div> <!-- The Gallery --> <h1>Photo Gallery</h1> <p>Click to enlarge:</p> <div class="gallery"> <!-- Photo 1 --> <div class="gallery-photo grow"> <img src="https://picsum.photos/400/600" alt="Alt Text" title="Photo Title 1"> </div> <!-- Photo 2 --> <div class="gallery-photo grow"> <img src="https://picsum.photos/600/400" alt="Alt Text" title="Photo Title 2"> </div> <!-- Photo 3 --> <div class="gallery-photo grow"> <img src="https://p
CodePen
codepen.io › Nood › pen › LZeoXN
modal carousel gallery - popup images gallery
October 19, 2020 - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"> </script> <div class="jumbotron"style="width:1200px"> <h1><span class="glyphicon glyphicon-camera" aria-hidden="true"> </span>Image Gallery</h1> <p>A collection of images descripe our work details</p> </div> <div align="center"> <ul class="list-inline"> <li><a href="#myGallery"data-slide-to="0"><img class="img-thumbnail" src="http://cdn2.artofth
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 › mattlansom › pen › epRNpp
Magnific Popup Gallery with Videos
January 8, 2022 - jQuery(document).ready(function() { jQuery('.popup-gallery').magnificPopup({ delegate: 'a', type: 'image', callbacks: { elementParse: function(item) { // Function will fire for each target element // "item.el" is a target DOM element (if present) // "item.src" is a source that you may modify console.log(item.el.context.className); if(item.el.context.className == 'video') { item.type = 'iframe', item.iframe = { patterns: { youtube: { index: 'youtube.com/', // String that detects type of video (in this case YouTube).
CodePen
codepen.io › ksolans › pen › KVZGpJ
Image pop-up gallery
html, body { background: #e1e1e1; height: 100%; margin: 0; padding: 0; width: 100%; z-index: 0; font-family: 'Roboto', sans-serif; } p { clear: both; } #content { width: 75%; min-height: 750px; background: #fff; margin: 5% auto; padding: 2em; border-radius: 20px; overflow: scroll; } .overlay { background-color: #666; opacity: 0.8; position: fixed; left: 0px; top: 0px; z-index: 98; } .photo img { width: 250px; float: left; clear: both; } .popup_box { display: none; /* Hide the DIV */ position: fixed; _position: fixed; /* hack for internet explorer 6 */ margin: auto; top: 0; right: 0; bottom: 0;
CodePen
codepen.io › arun-lal › pen › BgRKbN
Magnific Popup image and video slider
$('.popup-gallery').magnificPopup({ delegate: 'a', type: 'image', gallery: { enabled: true, navigateByImgClick: true, preload: [0,1] // Will preload 0 - before current, and 1 after the current image }, callbacks: { elementParse: function(item) { console.log(item.el[0].className); if(item.el[0].className == 'video') { item.type = 'iframe', item.iframe = { patterns: { youtube: { index: 'youtube.com/', // String that detects type of video (in this case YouTube).
CodePen
codepen.io › niteshgourofficial › pen › aKVgzL
Isotope images with magnific popup gallery
$(function(){ var $container = $('#container'); $container.imagesLoaded( function(){ $container.isotope({ itemSelector : '.photo' }); }); // Define App Namespace var popup = { // Initializer init: function() { popup.popupImage(); }, popupImage : function() { /* Image Popup*/ $('#container').magnificPopup({ delegate: 'a', type: 'image', mainClass: 'mfp-fade', removalDelay: 160, preloader: false, fixedContentPos: false, gallery: { enabled:true } }); } }; popup.init($); });