jQuery(window).load(function() { // Animate loader off screen jQuery(“.se-pre-con”).fadeOut(“slow”);; });
jQuery(document).ready(function($) { var width = $(window).width(), height = $(window).height(); console.log(“ancho: ” + width + ” alto: ” + height); if(width>height){ $(‘#logo-fantoons’).attr(‘src’,’/wp-content/uploads/2020/11/logo-fantoons-final-black-2.png’); } else { $(‘#logo-fantoons’).attr(‘src’,’/wp-content/uploads/2020/11/logo-fantoons-flat-xs-vertical-1.png’); } $( window ).resize(function() { if(width>=768){ if($(window).width() != width || $(window).height() != height){ location.reload(); } } }); console.log(“video” + $(“.video video”).width()); console.log(“img” + $(“.video img”).outerWidth()); //$(“.video video”).css(“width”, $(‘.video img’).width()); console.log(“video” + $(“.video video”).width()); console.log(“img” + $(“.video img”).width()); // $(document).mousemove(function(event){ var ancho = $(window).width(); ancho = ancho / 2; var alto = $(window).height(); alto = alto / 2; altoArt = alto / 2; console.log(“ancho” + ancho); console.log(“alto” + alto); console.log(“event.pageX” + event.pageX); console.log(“event.pageY” + event.pageY); if($( window ).width()>=768){ // $(‘#logo-fantoons’).attr(‘src’,’/wp-content/uploads/2020/11/logo-fantoons-final-black-2.png’); console.log(“ancho mayor a 768”); $(document).on(‘mousemove’,function(event){ if((ancho>= event.pageX) && (altoArt < event.pageY)){ $('#logo-fantoons').attr('src','/wp-content/uploads/2020/11/logo-fantoons-final-black-2.png'); $("#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"); $("#left").removeClass("grey"); $("#center").removeClass("grey"); $("#right").removeClass("grey"); $("a").removeClass("white"); $(".animation").css("display", "block"); $(".books").css("display", "none"); document.getElementById('reel-left').play(); document.getElementById('reel-right').pause(); $("#reel-left").css("display", "block"); $("#reel-right").css("display", "none"); console.log("hover sobre el left"); } else if (ancho< event.pageX) { if (altoArt = event.pageY) { $(“#logo-fantoons-grey”).css(“display”, “block”); $(“#right”).addClass(“grey”); $(“#left”).addClass(“grey”); $(“#center”).addClass(“grey”); $(“.video”).removeClass(“white”); $(“.video”).addClass(“grey”); $(“#right”).removeClass(“white”); $(“#left”).removeClass(“white”); $(“#center”).removeClass(“white”); $(“a”).removeClass(“white”); $(“.animation”).css(“display”, “block”); $(“.books”).css(“display”, “none”); $(“.video img”).removeClass(“invertir”); $(‘#logo-fantoons’).attr(‘src’,’/wp-content/uploads/2021/06/logo-fantoons-final-black-2.png’); document.getElementById(‘reel-left’).play(); document.getElementById(‘reel-right’).pause(); $(“#reel-left”).css(“display”, “block”); $(“#reel-right”).css(“display”, “none”); console.log(“hover sobre center”); } }); } else { console.log(“ancho menor o igual a 768”); $(“#header”).css(“display”, “block”); $(“#logo”).css(“display”, “none”); /* $(document).on(‘click touch’,function(event){ if(alto>= event.pageY) { //$(‘#logo-fantoons’).attr(‘src’,’/wp-content/uploads/2020/11/logo-fantoons-flat-xs-vertical-1.png’); $(“#right”).addClass(“black”); $(“#left”).addClass(“black”); $(“.video img”).removeClass(“invertir”); $(“#right”).removeClass(“white”); $(“#left”).removeClass(“white”); $(“.video”).removeClass(“white”); $(“a”).removeClass(“white”); $(“.animation”).css(“display”, “block”); $(“.books”).css(“display”, “none”); document.getElementById(‘reel-left’).play(); document.getElementById(‘reel-right’).pause(); $(“#reel-left”).css(“display”, “block”); $(“#reel-right”).css(“display”, “none”); $(“i.icon-menu”).removeClass(“invertir”); console.log(“click arriba”); } else { $(“#right”).addClass(“white”); $(“#left”).addClass(“white”); $(“a”).addClass(“white”); $(“.video img”).addClass(“invertir”); $(“.video”).addClass(“white”); $(“#right”).removeClass(“black”); $(“#left”).removeClass(“black”); $(“a”).removeClass(“black”); // $(“.animation”).css(“display”, “none”); // $(“.books”).css(“display”, “block”); document.getElementById(‘reel-right’).play(); document.getElementById(‘reel-left’).pause(); $(“#reel-left”).css(“display”, “none”); $(“#reel-right”).css(“display”, “block”); $(“#reel-right”).css(“width”, “100%”); $(“i.icon-menu”).addClass(“invertir”); console.log(“click abajo”); } }); */ } }); .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: 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; } #left, #right, #center { position: absolute; top: 0; left: 0; width: 25vw; height: 100vh; background-color: #000; z-index: 10; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 4em; } #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); } #reel-left { z-index: 2; } #reel-right { z-index: 1; } @media screen and (max-width: 1024px) and (orientation: portrait){ .video { position: relative; } .video img { height: auto; z-index: 5; } #reel-left, #reel-right { position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); width: 150%; height: 100%; z-index: 2; } #reel-right { z-index: 1; } #left, #right, #center { top: 18vh; left: auto; width: 100%; height: 8vh; justify-content: center; color: #fff; font-size: 2em; z-index: 10; } #left { width: 45%; left: 5%; } #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){ #reel-left, #reel-right { width: 100%; } } @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; } }