Speed up heinous slow animations

This commit is contained in:
John O'Nolan 2014-01-07 22:19:52 +01:00
parent 066637aca1
commit 3dd8f76a27
2 changed files with 3 additions and 3 deletions

View File

@ -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");

View File

@ -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);
}
});