fancy fades! \o/

This commit is contained in:
Lorin Werthen 2016-07-18 12:07:15 +02:00
parent c7dfc46229
commit fbb91c3a82

View file

@ -4,3 +4,12 @@ $('.ctrl').click ->
command: $(this).attr("command") command: $(this).attr("command")
posX: $(this).attr("posX") posX: $(this).attr("posX")
posY: $(this).attr("posY") posY: $(this).attr("posY")
$('.ctrl').hide()
timeout = null
$('.fullpage').mousemove (event) ->
clearTimeout(timeout) if timeout
$('.ctrl').fadeIn()
timeout = setTimeout (-> $('.ctrl').fadeOut()), 3000