From 3dd8f76a27f5df57cc593788a2969f673450b2b8 Mon Sep 17 00:00:00 2001 From: John O'Nolan Date: Tue, 7 Jan 2014 22:19:52 +0100 Subject: [PATCH] Speed up heinous slow animations --- core/client/assets/lib/jquery-utils.js | 2 +- core/client/toggle.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/client/assets/lib/jquery-utils.js b/core/client/assets/lib/jquery-utils.js index 98d2ba9b30..e4249fecdb 100644 --- a/core/client/assets/lib/jquery-utils.js +++ b/core/client/assets/lib/jquery-utils.js @@ -144,7 +144,7 @@ if (callback) { callback($("body").find(hideClass + ":visible")); } else { - $("body").find(hideClass + ":visible").fadeOut(); + $("body").find(hideClass + ":visible").fadeOut(150); // Toggle active classes on menu headers $("[data-toggle].active").removeClass("active"); diff --git a/core/client/toggle.js b/core/client/toggle.js index 8fd9a14aea..4efc7554eb 100644 --- a/core/client/toggle.js +++ b/core/client/toggle.js @@ -7,7 +7,7 @@ Ghost.temporary.hideToggles = function () { $('[data-toggle]').each(function () { var toggle = $(this).data('toggle'); - $(this).parent().children(toggle + ':visible').fadeOut(); + $(this).parent().children(toggle + ':visible').fadeOut(150); }); // Toggle active classes on menu headers @@ -33,7 +33,7 @@ if (!isAlreadyActive) { $this.toggleClass('active'); - $(this).parent().children(toggle).toggleClass('open').fadeToggle(200); + $(this).parent().children(toggle).toggleClass('open').fadeToggle(150); } });