🌐
CodePen
codepen.io › bgold › pen › WxppOq
Video Pop-up
<div class="vpop" data-type="youtube" data-id="6xcG6ttMDVY" data-autoplay='true'>Youtube</div> <br /> <div class="vpop" data-type="vimeo" data-id="172052320" data-autoplay='true'>Vimeo</div> <!-- copy this stuff and down --> <div id="video-popup-overlay"></div> <div id="video-popup-container"> <div id="video-popup-close" class="fade">&#10006;</div> <div id="video-popup-iframe-container"> <iframe id="video-popup-iframe" src="" width="100%" height="100%" frameborder="0"></iframe> </div> </div>
🌐
CodePen
codepen.io › seo2019 › pen › QeLLeL
The Simplest Popup Youtube Video
<p>The simplest popup youtube video</p> <p></p> <button class="popup-btn">click me</button> <div class="video-popup"> <div class="popup-bg"></div> <div class="popup-content"> <!-- <p class="popup-title">Youtube</p> --> <iframe src="https://youtube.com/embed/gQojMIhELvM?autoplay=0" class="video"></iframe> <button class="close-btn">close</button> </div> </div>
🌐
CodePen
codepen.io › tylermatchett › pen › dGqYby
Simple Overlay Video Popup
var transition_time = 250; var initStuff = function() { $('.overlay').hide(); $('.content-to-display').hide(); $('.overlay-close').hide(); } initStuff(); var openOveraly = function(event) { var overlay = $('.overlay'); var x = event.clientX; var y = event.clientY; overlay.show(); overlay.css({top: y, bottom: ($(window).height() - y), left: x, right: ($(window).width() - x)}); $('.overlay-content-display').css({top: y, bottom: ($(window).height() - y), left: x, right: ($(window).width() - x)}); var video_height = $('.content-to-display').height(); var video_width = $('.content-to-display').widt
🌐
CodePen
codepen.io › DonnaG › pen › DOqWGM
Video Pop-up in pure CSS.
<!-- thumbnail wrapped in a link --> <a href="#img1"> <center> <img src="http://www.clipartbest.com/cliparts/9Tp/enR/9TpenRLTE.svg" height="90"> </center> </a> <!-- lightbox container hidden with CSS --> <a href="#_" class="lightbox" id="img1"> <div id="videoModal" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="videoModalLabel" aria-hidden="false" style="display: block;"> <div class="modal-header"> <button type="button" class="close full-height" data-dismiss="modal" aria-hidden="true">X</button> <h3>Donna Galletta- Showreel</h3> </div> <div class="modal-body"><iframe width="870" height="489" src="https://www.youtube.com/embed/SvuoDerqNW0" frameborder="0" allowfullscreen=""></iframe></div> <div class="modal-footer"></div> </div>
🌐
CodePen
codepen.io › TurnerZajac › pen › JVOWQX
Seamless & Simple Video Lightbox Popup
.ugb-video-popup { position: relative; margin: 0 auto; width: 100%; max-width: 600px; } .ugb-video-preview, a, .ugb-play-button { position: absolute; top: 0; left: 0; right: 0; bottom: 0; } .ugb-video-preview { background-size: cover; background-position: center; opacity: .4; transition: all .3s ease-in-out; z-index: 1; object-fit: fill; width: 100%; } .ugb-video-wrapper { position: relative; width: 100%; padding-bottom: 56.25%; } a { z-index: 3; box-shadow: none !important; background: transparent !important; display: block !important; color: #fff; text-decoration: none; } .ugb-play-button { z-index: 2; display: flex; justify-content: center; align-items: center; } svg { fill: #fff !important; } .modal-open-link { font-family: sans-serif; font-size: 25px; color: #464646; width: 50px; height: 100px; line-height: 100px; text-align: center; }
🌐
CodePen
codepen.io › webrav › pen › ZrBNQR
Video Pop Up on click image or link - Youtube, Vimeo
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Test</title> <script type="text/javascript" src="https://code.jquery.com/jquery-1.12.1.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.css" /> </head> <body> <a class="popup-youtube" href="https://www.youtube.com/watch
🌐
CodePen
codepen.io › netteria › pen › bJwqya
HTML5 responsive popup video. Modal video
<a href="javascript:void(0)" id="video1">-- open video --</a> <div id="vidBox"> <div id="videCont"> <video autoplay id="v1" loop controls="controls"> <source src="https://netteria.net/myscript/jquery/html5videopopup/video/VideoPopUpHTML5.webm" type="video/webm"> <source src="https://netteria.net/myscript/jquery/html5videopopup/video/VideoPopUpHTML5.mp4" type="video/mp4"> </video> </div> </div> <br /><br /><br /><br /> GitHub - <a href="https://github.com/netteria/html5-video-popup-responsive" target="_blank">HTML5 responsive popup video by Netteria.NET</a>
🌐
CodePen
codepen.io › kliedLABS › pen › DWZoww
Magnific-Popup Youtube Video
/* Magnific Popup CSS */ .mfp-bg { top: 0; left: 0; width: 100%; height: 100%; z-index: 502; overflow: hidden; position: fixed; background: #0b0b0b; opacity: 0.8; filter: alpha(opacity=80); } .mfp-wrap { top: 0; left: 0; width: 100%; height: 100%; z-index: 503; position: fixed; outline: none !important; -webkit-backface-visibility: hidden; } .mfp-container { height: 100%; text-align: center; position: absolute; width: 100%; height: 100%; left: 0; top: 0; padding: 0 8px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .mfp-container:before { content: ''; d
🌐
CodePen
codepen.io › raaasin › pen › YGOKRy
Video Modal Box
<a class="popup-youtube" ... YouTube video</a> <script> $(document).ready(function() { $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({ disableOn: 700, type: 'iframe', mainClass: 'mfp-fade', removalDelay: 160, preloader: false, ...
🌐
CodePen
codepen.io › stephangouw › pen › GGmvab
Load Video in Popup Div
Working on a way to load a youtube video in to a pop-up div, shading out the background. Upon pressing Escape or clicking the wrapper, the video closes...
Find elsewhere
🌐
CodePen
codepen.io › ahmetaksungur › pen › JgKOMw
video Iframe popup + simple
We cannot provide a description for this page right now
🌐
CodePen
codepen.io › deriboru › pen › QjZmNL
Responsive video popup
var $iframe = $('iframe'), $videoLink = $('.video-link'), playerTemplate = '<div class="player"><div class="player__video"><div class="video-filler"></div><button class="video-close">&times;</button><iframe class="video-iframe" src="{{iframevideo}}" frameborder="0" allowfullscreen></iframe></div><div/>'; $videoLink.on('click', function(e) { var localTemplate = '', videoWidth = parseInt($(this).data('width')), videoHeight = parseInt($(this).data('height')), videoAspect = ( videoHeight / videoWidth ) * 100, // elements $player = null, $video = null, $close = null, $iframe = null; e.preventDefaul
🌐
CodePen
codepen.io › nabeelfaheem › pen › ewJVem
Dynamic Video Popup Using jQuery
$(document).ready(function() { $('.vid-slider .vid').on('click', function() { // get required DOM Elements var iframe_src = $(this).children('iframe').attr('src'), iframe = $('.video-popup'), iframe_video = $('.video-popup iframe'), close_btn = $('.close-video'); iframe_src = iframe_src + '?autoplay=1&rel=0'; // for autoplaying the popup video // change the video source with the clicked one $(iframe_video).attr('src', iframe_src); $(iframe).fadeIn().addClass('show-video'); // remove the video overlay when clicking outside the video $(document).on('click', function(e) { if($(iframe).is(e.target) || $(close_btn).is(e.target)) { $(iframe).removeClass('show-video'); $(iframe_video).attr('src', ''); } }); }); });
🌐
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
🌐
CodePen
codepen.io › smallma009 › pen › JKEQEd
Youtube-Popup-Video
<a href="#" id="showPopup">Click</a> <div>Demo: Click to play Youtube</div> <div class="bg" style="display:none"></div> <div class="popup" style="display:none;height: 100%; width:100%;"> <iframe id="player" class="test3" src="//www.youtube.com/embed/Q_WHGV5bejk" frameborder="0" allowfullscreen></iframe> </div>
🌐
CodePen
codepen.io › nrwilliams › pen › oYZpdY
Video Popup onClick Autoplay
<div class="row-fluid"> <div class="span6"> <div class="ss-video-holder"> <!-- VIDEO --> <a class="ss-popup" href="#!" data-link="https://player.vimeo.com/video/192500245?title=0&amp;byline=0&amp;portrait=0&amp;color=d01e2f&amp;autoplay=1"> <img src="http://enviroscent.com/shopflow-1-04-0/img/Site/play-btn.png" class="ss-play-btn"> </a> <div class="video-title">ScentSicles Santa - Living Room</div> <span class="video-time">(0:51s)</span> <div> <!-- VIDEO END --> <div class="ss-video-holder"> <!-- VIDEO --> <a class="ss-popup" href="#!" data-link="https://player.vimeo.com/video/192504460?title=
🌐
CodePen
codepen.io › xaixai › pen › LxKLeE
YouTube Video Popup
function videoPopup(objectName, videoUrl){ this.videoUrl= videoUrl; this.screenSize= $(window).width(); this.heightOfVideo= this.screenSize * .4; this.videoPop= '<div class="popUpWrapper">'+ '<div id="videoWrap"">'+ '<button type="button" class="videoClose" onclick="'+objectName+'.closeVideo()">X</button>'+ '<iframe width="100%" height="'+this.heightOfVideo+'" src="'+this.videoUrl+'" frameborder="0" allowfullscreen></iframe></div>'+ '</div>', this.closeVideo= function(){ $('.blackOut').fadeOut('slow'); $('.popupAlignCenter').html(""); }, this.launchPopUp= function(){ $(window).scroll(function(
🌐
CodePen
codepen.io › mattamyot › pen › dMGwyK
YouTube Video Modal
</p> <h2> Launch From Thumbnails </h2> <div class="video-thumb-grid"> <!-- Daft Punk - Human After All --> <a href="https://www.youtube.com/watch?v=hrB-_nIer88" data-youtube-id="hrB-_nIer88" class="video-thumb js-trigger-video-modal" > <img class="video-banner-img" src="http://i3.ytimg.com/vi/hrB-_nIer88/maxresdefault.jpg" alt="" /> </a> <!-- M83 - Midnight City --> <a href="https://www.youtube.com/watch?v=dX3k_QDnzHE" data-youtube-id="dX3k_QDnzHE" class="video-thumb js-trigger-video-modal" > <img class="video-banner-img" src="http://i3.ytimg.com/vi/dX3k_QDnzHE/hqdefault.jpg" alt="" /> </a> <!
🌐
CodePen
codepen.io › arifbsl › pen › OJyYKKe
Pop-Up with Video without JS
<!-- Animated button --> <a href="#pop-up"> <div class="play-button"> <div class="play-icon"> </div> </div> </a> <!-- Pop Up contnet --> <div class="video-pop" id="pop-up"> <div class="pop-bg"> <div class="pop-container"> <a class="close" href="#">&times;</a> <iframe width="560" height="315" src="https://www.youtube.com/embed/LqmratdBFNw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </div> </div> </div>
🌐
CodePen
codepen.io › davidleduc › pen › EPrgqY
HTML 5 Video playing in a lightbox
<h1>CSS/Javascript popup with Lightbox effect</h1> <div id="light"> <a class="boxclose" id="boxclose" onclick="lightbox_close();"></a> <video id="VisaChipCardVideo" width="600" controls> <source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4"> <!--Browser does not support <video> tag --> </video> </div> <div id="fade" onClick="lightbox_close();"></div> <div> <a href="#" onclick="lightbox_open();">Watch video</a> </div> <div class="test">test</div> <div class="test2">test2</div>