mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
Speed up heinous slow animations
This commit is contained in:
parent
066637aca1
commit
3dd8f76a27
2
core/client/assets/lib/jquery-utils.js
vendored
2
core/client/assets/lib/jquery-utils.js
vendored
@ -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");
|
||||
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user