summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-01-04 14:57:11 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-01-04 14:57:11 -0500
commit9f46ca444354d4c6b52de3f23ce17c11f705d006 (patch)
treea49a7abb3883d58fc4338a8be121ca9b7594c1c2
parent7df3c1e8eafcb071f23ac1f4142e81ce8c1d9def (diff)
downloadgitlab-ce-9f46ca444354d4c6b52de3f23ce17c11f705d006.tar.gz
Decrease the logo sweep delay
-rw-r--r--app/assets/javascripts/logo.js.coffee5
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