fancy fades! \o/
This commit is contained in:
parent
c7dfc46229
commit
fbb91c3a82
1 changed files with 9 additions and 0 deletions
|
@ -4,3 +4,12 @@ $('.ctrl').click ->
|
|||
command: $(this).attr("command")
|
||||
posX: $(this).attr("posX")
|
||||
posY: $(this).attr("posY")
|
||||
|
||||
$('.ctrl').hide()
|
||||
|
||||
timeout = null
|
||||
|
||||
$('.fullpage').mousemove (event) ->
|
||||
clearTimeout(timeout) if timeout
|
||||
$('.ctrl').fadeIn()
|
||||
timeout = setTimeout (-> $('.ctrl').fadeOut()), 3000
|
||||
|
|
Loading…
Reference in a new issue