Decrease the logo sweep delay

This commit is contained in:
Robert Speicher 2016-01-04 14:57:11 -05:00
parent 7df3c1e8ea
commit 9f46ca4443
1 changed files with 3 additions and 2 deletions

View File

@ -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