.no-js #loader { display: none; } .js #loader { display: block; position: absolute; left: 100px; top: 0; } .se-pre-con { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 9999; background-color: #fff; background: url(/wp-content/uploads/2020/10/preloader.gif) center no-repeat #fff; } body { overflow: hidden; } #logo-fantoons-grey { display:none; } #header, #footer{ display: none; } .page-wrapper { padding-top: 0px; padding-bottom: 0px; } .col { padding: 0; } .full-container, .video, #logo{ width:100%; height:100vh; overflow: hidden; } .video { width: 100vw; height: 100vh; overflow: hidden; } .video img, .video video { position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); width: auto; height: 185vh; max-height:100%; z-index: 1; } .video img { z-index: 5; } /* .video video { display: block; width: auto; height: 100%; -o-object-fit: cover; object-fit: cover; opacity: 1; -webkit-transition: opacity .3s; transition: opacity .3s; } */ .clipper { width: 100vw; height: 100vh; overflow: hidden; transition: all 0.3s ease; } #left, #right, #center { position: absolute; top: 0; left: 0; width: 25vw; height: 100vh; background-color: #000; z-index: 10; display: flex; flex-wrap: wrap; flex-direction: column; align-items: center; color: #fff; font-size: 4em; } div.arriba, div.abajo{ align-items: stretch; position: relative; display: flex; height: 50vh; flex-direction: column; justify-content: space-around; width: 100%; text-align: center; } #center { height:17vh; width:100%; align-items: flex-start; } #left { justify-content: flex-end; } #right { left: auto; right: 0; justify-content: flex-start; } .contenido { color: white; font-size: 4em; font-weight: 100; } a, a:hover { color: white; } .black { background-color: #000; } .white { background-color: #fff!important; color: #000!important; } .grey { background-color: #666!important; color: #000!important; } .invertir { filter: invert(1); } .invertirArt { filter: invert(0.4); } @media screen and (max-width: 1024px) and (orientation: portrait){ .video { position: relative; } .video img { height: auto; z-index: 5; } #left, #right, #center { top: 18vh; left: auto; width: 100%; height: 8vh; justify-content: center; color: #fff; font-size: 2em; z-index: 10; } #left { width: 100%; left: auto; } #center { width: 45%; right:0; align-items: center; } #right { left: auto; bottom: 0; top: 85vh!important; } #header { width: 25%; } } @media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait){ } @media screen and (min-width: 641px) and (max-width: 1023px) and (orientation:landscape){ #left, #right, #center { font-size: 1.5em; width: 32vh; } #center { width: 100%; top: 10vh; } } @media screen and (max-width: 640px) and (orientation: landscape){ #left, #right { font-size: 1.5em; } } .glitch { text-decoration: none; text-transform: uppercase; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; color: #fff; letter-spacing: 5px; } .glitch:before, .glitch:after { display: block; content: attr(data-glitch); text-transform: uppercase; position: absolute; top: 0; left: 0; height: 100%; width: 100%; opacity: 0.8; } .glitch:after { color: #f0f; z-index: -2; } .glitch:before { color: #0ff; z-index: -1; } .glitch:hover:before { -webkit-animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite; animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite; } .glitch:hover:after { animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite; } @media only screen and (max-width: 400px) { .glitch { } } @-webkit-keyframes glitch { 0% { transform: translate(0); } 20% { transform: translate(-5px, 5px); } 40% { transform: translate(-5px, -5px); } 60% { transform: translate(5px, 5px); } 80% { transform: translate(5px, -5px); } to { transform: translate(0); } } @keyframes glitch { 0% { transform: translate(0); } 20% { transform: translate(-5px, 5px); } 40% { transform: translate(-5px, -5px); } 60% { transform: translate(5px, 5px); } 80% { transform: translate(5px, -5px); } to { transform: translate(0); } } jQuery(document).ready(function($) { $(‘#reel’).on(“click”, function() { setTimeout(function(){ jQuery.magnificPopup.open({midClick: true, removalDelay: 300, items: { src: ‘#same-line-section’, type: ‘inline’}}); }, 500); }); var width = $(window).width(), height = $(window).height(); console.log(“ancho: ” + width + ” alto: ” + height); if(width>height){ $(‘#logo-fantoons’).attr(‘src’,’/wp-content/uploads/2022/01/logo-fantoons-final-black-2-_1_.webp’); } else { $(‘#logo-fantoons’).attr(‘src’,’/wp-content/uploads/2022/01/logo-fantoons-flat-xs-vertical-1.webp’); } $(document).mousemove(function(event){ var ancho = $(window).width(); ancho = ancho / 2; var alto = $(window).height(); alto = alto / 2; altoArt = alto / 2; if($( window ).width()>=768){ console.log(“ancho mayor a 768”); if((ancho>= event.pageX) && (altoArt < event.pageY)){ $('#logo-fantoons').attr('src','/wp-content/uploads/2022/01/logo-fantoons-final-black-2-_1_.webp'); $("#right").addClass("black"); $("#left").addClass("black"); $("a").addClass("white"); $(".video").removeClass("white"); $(".video").removeClass("grey"); $(".video img").removeClass("invertir"); $("#right").removeClass("white"); $("#left").removeClass("white"); $("#center").removeClass("white"); $("a").removeClass("white"); $(".animation").css("display", "block"); $(".books").css("display", "none"); $(".clipper").css("transform", "matrix3d(0.94, 0, 0.34, -0.0002, 0, 1, 0, 0, -0.34, 0, 0.94, 0, 1, 0, 10, 1) translateX(-10px)"); console.log("hover sobre el left"); } else if (ancho< event.pageX) { $(".clipper").css("transform", "matrix3d(0.94, 0, 0.34, 0.0002, 0, 1, 0, 0, -0.34, 0, 0.94, 0, 1, 0, 10, 1) translateX(30px)"); $('#logo-fantoons').attr('src','/wp-content/uploads/2022/01/logo-fantoons-final-black-2-_1_.webp'); $("#right").addClass("white"); $("#left").addClass("white"); $("#center").addClass("white"); $("a").addClass("white"); $(".video").addClass("white"); $(".video img").addClass("invertir"); $("#right").removeClass("black"); $("#left").removeClass("black"); $("a").removeClass("black"); } } else { console.log("ancho menor o igual a 768"); $("#header").css("display", "block"); $("#logo").css("display", "none"); } }); });