From a0dacea81193600983e55c60fe8265ed061abb04 Mon Sep 17 00:00:00 2001 From: Max Nussenbaum Date: Mon, 7 May 2018 12:01:32 -0700 Subject: [PATCH] portico: Remove transition on page load. Removes the fade in and fade out that used to happen when a page was loaded. --- static/js/portico/landing-page.js | 12 +----------- static/styles/landing-page.scss | 4 ---- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/static/js/portico/landing-page.js b/static/js/portico/landing-page.js index f422ee7cae..595be43924 100644 --- a/static/js/portico/landing-page.js +++ b/static/js/portico/landing-page.js @@ -192,7 +192,7 @@ var events = function () { if (window.location.pathname !== this.pathname && !this.hasAttribute("download") && !/no-action/.test(this.className)) { e.preventDefault(); - $(".portico-landing").removeClass("show"); + setTimeout(function () { window.location.href = $(this).attr("href"); }.bind(this), 500); @@ -235,16 +235,6 @@ var events = function () { // run this callback when the page is determined to have loaded. var load = function () { - // show the .portico-landing when the document is loaded. - setTimeout(function () { - $(".portico-landing").addClass("show"); - }, 200); - - // display the `x-grad` element a second after load so that the slide up - // transition on the .portico-landing is nice and smooth. - setTimeout(function () { - $("x-grad").addClass("show"); - }, 1000); // Initiate the bootstrap carousel logic $('.carousel').carousel({ diff --git a/static/styles/landing-page.scss b/static/styles/landing-page.scss index f00fa3f4dc..50b1353d52 100644 --- a/static/styles/landing-page.scss +++ b/static/styles/landing-page.scss @@ -369,10 +369,6 @@ nav ul li.active::after { padding-top: 120px; - transition: opacity 0.3s ease; - - opacity: 0; - z-index: 1; }