diff --git a/content/cammie.coffee b/content/cammie.coffee index 3a64eec..da88a1e 100644 --- a/content/cammie.coffee +++ b/content/cammie.coffee @@ -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