JSFiddle - React, Tailwind, and code Playground
by kiokotzu
HTML
<script src="http://127.0.0.1/imocom/assets/js/lib/jquery.magnific-popup.js"></script>
<link rel="stylesheet" href="http://repositorio.imaginamos.com.co/LEV/imocom-varios/assets/css/estilos_plugins.css">
<a class="popup-youtube" href="http://www.youtube.com/watch?v=0O2aH4XLbto">Open YouTube video</a>
CSS
.popup-gallery {
display: none;
}
.white-popup-block {
background: #fff;
text-align: left;
max-width: 500px;
margin: 40px auto;
position: relative;
z-index: 999;
}
.white-popup-block img {
margin: 0 auto;
display: block;
}
.white-popup-block h4 {
text-align: center;
margin: 10px auto 15px auto;
text-align: center;
font-size: 20px;
}
.header-pop-up {
background: #00949c;
color: #fff;
padding: 13px 15px;
position: relative;
font-family: 'latolight', sans-serif;
}
.header-pop-up h3 {
font-size: 18px;
}
.contenido-pop-up {
padding: 13px 15px;
color: #333;
}
.formulario.form-pop-up {
padding: 10px 0;
}
.formulario.form-pop-up form {
margin: 0;
}
.formulario.form-pop-up form textarea {
height: 100px;
}
.padding-pop {
padding: 15px;
position: relative;
}
.cuerpo-pop-up {
position: absolute;
width: 90%;
max-width: 1000px;
margin: 0 auto;
left: 0;
right: 0;
top: 10%;
background: #fff;
display: none;
z-index: 9999;
}
.cuerpo-pop-up .mostrar-gallery img {
width: 90%;
margin: 0 auto;
display: block;
}
.interactive_3d2 {
height: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 20px;
position: relative;
overflow: hidden;
}
.fondo-pop-up {
display: none;
background: rgba(0,0,0,0.8);
position: fixed;
z-index: 999;
height: 100%;
width: 100%;
left: 0;
top: 0;
}
.cerrar {
width: 44px;
height: 44px;
line-height: 44px;
position: absolute;
right: 0;
top: 0;
text-decoration: none;
text-align: center;
opacity: 0.65;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=65)";
filter: alpha(opacity=65);
padding: 0 0 18px 10px;
color: #fff;
font-style: normal;
font-size: 28px;
font-family: Arial, Baskerville, monospace;
border: none;
cursor: pointer;
background: none;
}
.mostrar-gallery > div {
display: none;
}
.mostrar-gallery > div:nth-child(1) {
display: block;
}
.rotate {
...
JavaScript
$(function(){
$('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({
disableOn: false,
type: 'iframe',
mainClass: 'mfp-fade',
removalDelay: 160,
preloader: false,
fixedContentPos: false
});
})