mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
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:
committed by
Tim Abbott
parent
99b1dec92a
commit
a0dacea811
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user