Skip to content

Commit

Permalink
portico: Remove transition on page load.
Browse files Browse the repository at this point in the history
Removes the fade in and fade out that used to happen when a
page was loaded.
  • Loading branch information
maxnuss authored and timabbott committed May 8, 2018
1 parent 99b1dec commit a0dacea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
12 changes: 1 addition & 11 deletions static/js/portico/landing-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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({
Expand Down
4 changes: 0 additions & 4 deletions static/styles/landing-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,6 @@ nav ul li.active::after {

padding-top: 120px;

transition: opacity 0.3s ease;

opacity: 0;

z-index: 1;
}

Expand Down

0 comments on commit a0dacea

Please sign in to comment.