diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-01-04 14:57:11 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-04 14:57:11 -0500 |
commit | 9f46ca444354d4c6b52de3f23ce17c11f705d006 (patch) | |
tree | a49a7abb3883d58fc4338a8be121ca9b7594c1c2 | |
parent | 7df3c1e8eafcb071f23ac1f4142e81ce8c1d9def (diff) | |
download | gitlab-ce-9f46ca444354d4c6b52de3f23ce17c11f705d006.tar.gz |
Decrease the logo sweep delay
-rw-r--r-- | app/assets/javascripts/logo.js.coffee | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/logo.js.coffee b/app/assets/javascripts/logo.js.coffee index a8f97bdf3d7..b4dc993dead 100644 --- a/app/assets/javascripts/logo.js.coffee +++ b/app/assets/javascripts/logo.js.coffee @@ -1,5 +1,6 @@ NProgress.configure(showSpinner: false) +delay = 150 defaultClass = 'tanuki-shape' pieces = [ 'path#tanuki-right-cheek', @@ -12,7 +13,7 @@ firstPiece = pieces[0] timeout = null clearHighlights = -> - $(".#{defaultClass}").attr('class', defaultClass) + $(".#{defaultClass}.highlight").attr('class', defaultClass) start = -> clearHighlights() @@ -40,7 +41,7 @@ work = (pieceIndex) -> nextIndex = pieceIndex + 1 work(nextIndex) - , 200) + , delay) $(document).on 'page:fetch', start $(document).on 'page:change', stop |