portico: Remove transition on page load.

Removes the fade in and fade out that used to happen when a
page was loaded.
This commit is contained in:
Max Nussenbaum
2018-05-07 12:01:32 -07:00
committed by Tim Abbott
parent 99b1dec92a
commit a0dacea811
2 changed files with 1 additions and 15 deletions

View File

@@ -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({