Decrease the logo sweep delay
This commit is contained in:
parent
7df3c1e8ea
commit
9f46ca4443
|
@ -1,5 +1,6 @@
|
||||||
NProgress.configure(showSpinner: false)
|
NProgress.configure(showSpinner: false)
|
||||||
|
|
||||||
|
delay = 150
|
||||||
defaultClass = 'tanuki-shape'
|
defaultClass = 'tanuki-shape'
|
||||||
pieces = [
|
pieces = [
|
||||||
'path#tanuki-right-cheek',
|
'path#tanuki-right-cheek',
|
||||||
|
@ -12,7 +13,7 @@ firstPiece = pieces[0]
|
||||||
timeout = null
|
timeout = null
|
||||||
|
|
||||||
clearHighlights = ->
|
clearHighlights = ->
|
||||||
$(".#{defaultClass}").attr('class', defaultClass)
|
$(".#{defaultClass}.highlight").attr('class', defaultClass)
|
||||||
|
|
||||||
start = ->
|
start = ->
|
||||||
clearHighlights()
|
clearHighlights()
|
||||||
|
@ -40,7 +41,7 @@ work = (pieceIndex) ->
|
||||||
nextIndex = pieceIndex + 1
|
nextIndex = pieceIndex + 1
|
||||||
|
|
||||||
work(nextIndex)
|
work(nextIndex)
|
||||||
, 200)
|
, delay)
|
||||||
|
|
||||||
$(document).on 'page:fetch', start
|
$(document).on 'page:fetch', start
|
||||||
$(document).on 'page:change', stop
|
$(document).on 'page:change', stop
|
||||||
|
|
Loading…
Reference in New Issue